Class AbstractTranslationsRegistry.TranslationBuilder
java.lang.Object
net.minheur.potoflux.translations.AbstractTranslationsRegistry.TranslationBuilder
- Enclosing class:
- AbstractTranslationsRegistry
Builder for translations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUtility to create a German translationUtility to create an English translationUtility to create a Espagnol translationUtility to create a French translationAdds an actual translation with the key
-
Constructor Details
-
TranslationBuilder
Creates the builder- Parameters:
key- the key for the translation
-
-
Method Details
-
lang
Adds an actual translation with the key- Parameters:
lang- the lang to add the translation tovalue- the content of the translation- Returns:
- the actual builder
-
en
Utility to create an English translation- Parameters:
value- the content of the translation- Returns:
- the actual builder
-
fr
Utility to create a French translation- Parameters:
value- the content of the translation- Returns:
- the actual builder
-
de
Utility to create a German translation- Parameters:
value- the content of the translation- Returns:
- the actual builder
-
es
Utility to create a Espagnol translation- Parameters:
value- the content of the translation- Returns:
- the actual builder
-