Globalization of UX web applications
Export dictionary labels from JSON files in the Messages Folder using Globalization Manager to create XLIFF translation files, then retrieve translated labels through dictionary API calls using the getTranslatedMessages method from tririga-react-components library.
Exporting the Dictionary Labels
The Globalization Manager exports labels from both UX Polymer and UX Web Applications. The Globalization Manager does this by exporting the dictionary as XLIFF files of unique translatable text. If a specific label appears in multiple views and UX Web Applications, only one unique entry will appear in the dictionary.
The difference between UX Polymer and UX Web Applications in exporting labels is:
- UX Polymer Applications
- UX Web Applications
Web View Metadata

For example, in the messages.json file, the following labels will be exported by the Globalization Manager:
HOME_HEADER: Welcome to the UX Web Application Home PageCURRENT_HEADER: Current user detailsUNAUTHORIZED_TITLE: You do not have permission to access this page.UNAUTHORIZED_DESCRIPTION: Due to either a session timeout or unauthorized access, you do not have permission to access this page.
JSON File > messages.json

Getting the Translated Labels
The difference between UX Polymer and UX Web Applications in getting translated labels is:
- Maximo® Real Estate and Facilities detects the language that is defined for the user. Then it automatically translates all static translatable labels that are defined inside the HTML and JS files that are requested by the browser. It does this by using the translations that are imported into the Globalization Manager dictionary. So, the browser receives the files with the labels already translated.
-
UX Web Applications: The application calls the dictionary API to get the translated labels. The
tririga-react-componentslibrary exports thegetTranslatedMessagesmethod to help the application to interact with the dictionary API. For more information about thegetTranslatedMessagesmethod, including an example, see: