Skip to content

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

  1. Change to the C:\Program Files\SEAL Systems\seal-operator-ui\dist\assets\i18n directory.

  2. Copy an existent language file, such as en.json to a new language file, <language>.json, for example, fr.json.

  3. Translate the values of the keys in the new language file, <language>.json.

  4. 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.

  5. In the configuration of the seal-operator-ui service, add the new language <language> to the AVAILABLE_LANGUAGES key.

  6. Close SEAL Print Client.

  7. Restart the following service:

    • seal-operator-ui
  8. Open SEAL Print Client.


Change a Text in an Existent Language

  1. Change to the C:\Program Files\SEAL Systems\seal-operator-ui\dist\assets\i18n directory.

  2. Create an additional language file for the language <language>-diff.json, for example, en-diff.json or edit the file if it already exists.

  3. 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.

  4. Close and reopen SEAL Print Client.


Back to top