Class DefaultI18nHelper
java.lang.Object
eu.rarogsoftware.rarog.platform.core.i18n.DefaultI18nHelper
- All Implemented Interfaces:
I18nHelper
-
Field Summary
Fields inherited from interface eu.rarogsoftware.rarog.platform.api.i18n.I18nHelper
SYNTHETIC_LANGUAGE, SYNTHETIC_LANGUAGE_TAG
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultI18nHelper
-
-
Method Details
-
getText
Description copied from interface:I18nHelper
Get translated string for provided key for current user locale.- Specified by:
getText
in interfaceI18nHelper
- Parameters:
key
- translation key (can be either simple key or pair namespace:key) Examples: `key.to.translate`, `common:key.to.translate`args
- values to pass into translation- Returns:
- translated string
-
getText
Description copied from interface:I18nHelper
Get translated string for provided key for provided locale.- Specified by:
getText
in interfaceI18nHelper
- Parameters:
locale
- requested locale of translationkey
- translation key (can be either simple key or pair namespace:key) Examples: `key.to.translate`, `common:key.to.translate`args
- values to pass into translation- Returns:
- translated string
-