Class LanguageGenProvider.TranslationBuilder

java.lang.Object
net.minheur.techno_lib.lang.LanguageGenProvider.TranslationBuilder
Enclosing class:
LanguageGenProvider

public class LanguageGenProvider.TranslationBuilder extends Object
The class that handles adding languages.

Remember to add the method with the correct name when adding a new language to supported ones.

  • Field Details

    • key

      private final String key
      The id of the language the instance is handling.
  • Constructor Details

    • TranslationBuilder

      private TranslationBuilder(String key)
  • Method Details

    • lang

      Adding a translation for a specific language a value.
      Parameters:
      langId - the id of the lang you are adding a traduction in
      value - the value of this translation
      Returns:
      the actual translation pack you are creating
    • en_us

      Adding a translation for the en_us lang file.
      Parameters:
      value - the value of the translation
      Returns:
      the actual translation pack you are creating
    • fr_fr

      Adding a translation for the fr_fr lang file.
      Parameters:
      value - the value of the translation
      Returns:
      the actual translation pack you are creating