public final class TranslationHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TRANSLATIONS_METADATA
The translations metadata name.
|
| Modifier | Constructor and Description |
|---|---|
private |
TranslationHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
getTranslations(Content content)
Get the translations of a content.
|
static void |
setTranslations(ModifiableContent content,
Map<String,String> translations)
Set the translations on a content.
|
public static final String TRANSLATIONS_METADATA
private TranslationHelper()
public static Map<String,String> getTranslations(Content content)
content - the Content.public static void setTranslations(ModifiableContent content, Map<String,String> translations)
content - the Content.translations - the translations to set, as a Map of language -> content ID.