Languages Overview
The Telco Network Cloud Orchestration (TNC-O) User Interface supports multiple languages via translation.json
files. A translation file can be provided for each locale the user requires which contains mappings for all text within the TNC-O UI (see sample translation file below for reference).
<li>
<a href="https://ibm.github.io/telco-network-cloud-drivers//user-guides/administration/configuration/languages/language-overview.files/translation.json" >
translation.json
</a>
(29 kB)
</li>
Adding Locales to TNC-O
- To set the translations for each locale of the TNC-O UI you need to produce a
locales.tar
containing the necessary elements. The TAR should include a directory for each potential locale. Each locale is represented by a directory which should include thetranslation.json
to be used. The name of the directory should match the ISO language code it targets (ISO 639-1 codes, ISO 3166-2 codes).
+-- en-GB
| +-- translation.json
+-- en-US
+-- translation.json
- Produce a TAR called
locales.tar
(mandatory name) using thetar
command, including each locales directory:
tar -cvzf locales.tar en-GB en-US
- The
locales.tar
must be loaded into your Kubernetes environment by creating a ConfigMap.
kubectl create configmap lm-locales --from-file locales.tar
- Multiple language support can be enabled during TNC-O installation or for an already running TNC-O.