Class TranslationHelper

    • Method Detail

      • getTranslations

        public static Map<String,​StringgetTranslations​(Content content)
        Get the translations of a content.
        Parameters:
        content - the Content.
        Returns:
        the translations as a Map of language -> content ID. FIXME CMS-9941: Use the DataHolder Internal API
      • setTranslations

        public static void setTranslations​(ModifiableContent content,
                                           Map<String,​String> translations)
        Set the translations on a content.
        Parameters:
        content - the Content.
        translations - the translations to set, as a Map of language -> content ID. FIXME CMS-9941: Use the DataHolder Internal API