Configure Languages and Texts¶
For SEAL Print Client, you can add a new language or change specific texts in an existent language.
Add a New Language¶
-
Change to the
/opt/seal/seal-operator-ui/dist/assets/i18n
directory. -
Copy an existent language file, such as
en.json
to a new language file,<language>.json
, for example,fr.json
. -
Translate the values of the keys in the new language file,
<language>.json
. -
For the already existing languages, add the new language to the language selection. For this, create an additional language file for the already existing language
<already_existing_language>-diff.json
, for example,en-diff.json
or edit the file if it already exists. Here, add the following section for the language token and the text shown in the selection:{ "Common": { "LANGUAGE": { "language_token": "language_selection_text" } } }
Example - add French
{ "Common": { "LANGUAGE": { "fr": "Français" } } }
Hint - merge
The diff files are merged to the language files. So only the differences are to be specified here. The values in the diff files take priority.
-
In the configuration of the
seal-operator-ui
service, add the new language<language>
to theAVAILABLE_LANGUAGES
key. -
Close SEAL Print Client.
-
Restart the following service:
seal-operator-ui
-
Open SEAL Print Client.
Change a Text in an Existent Language¶
-
Change to the
/opt/seal/seal-operator-ui/dist/assets/i18n
directory. -
Create an additional language file for the language
<language>-diff.json
, for example,en-diff.json
or edit the file if it already exists. -
Copy the section to be changed from the language file,
<language>.json
to the additional language file,<language>-diff.json
and change the value.Example - change translation for
PLS_PUNCH_TYPE
{ "JSON_SCHEMA": { "PLS_PUNCH_TYPE": "Punching" } }
Hint - merge
The diff files are merged to the language files. So only the differences are to be specified here. The values in the diff files take priority.
-
Close and reopen SEAL Print Client.