Translations Ruby API (DEPRECATED)
Methods
Translate Code Text to Authenticated User’s Language
Io::Translate.<full identifier of translation>(<parameter 1>, <parameter 2>, ...)
Translate Code Text to Specified Language
Io::TranslateWithLanguage.<full identifier of translation>(<ISO 639-1 language code>, <parameter 1>, <parameter 2>, ...)
Translate Metadata to Authenticated User’s Language
Io::Translate.get_translated_metadata(<object's full identifier>, <record's UUID>, <field's full identifier>)
Translate Metadata to Specified Language
Io::TranslateWithLanguage.get_translated_metadata(<ISO 639-1 language code>, <object's full identifier>, <record's UUID>, <field's full identifier>)
Examples
Return Page not found for path abc/def if Authenticated User’s Language is English
Io::Translate.io_page_not_found_for_path("abc/def")
Return Page non trouvée pour le chemin abc/def if Authenticated User’s Language is French
Io::TranslateWithLanguage.io_page_not_found_for_path("fr", "abc/def")
Translate Name Field of Account Object to Authenticated User’s Language
Io::Translate.get_translated_metadata("io_object", UUID.fromString("bf35c30e-c6e5-11e0-be1e-001ec93afa2c"), "io_name")
Translate Name Field of Account Object to French
Io::TranslateWithLanguage.get_translated_metadata("fr", "io_object", UUID.fromString("bf35c30e-c6e5-11e0-be1e-001ec93afa2c"), "io_name")
For more information:
Was this helpful?