Localizing the Player V4 UI

You can localize the Player V4 (HTML5) and Android and iOS player skins. The default skin.json file included in the example on Github references default localization files for the player.

"localization": {
    "defaultLanguage": "en",
    "availableLanguageFile": [
      {
        "language": "en",
        "languageFile": "",
        "androidResource": "skin-config/languageFiles/en.json",
        "iosResource": "en"
      },
      {
        "language": "es",
        "languageFile": "",
        "androidResource": "skin-config/languageFiles/es.json",
        "iosResource": "es"
      },
      {
        "language": "zh",
        "languageFile": "",
        "androidResource": "skin-config/languageFiles/zh.json",
        "iosResource": "zh"
      }
            {
        "language": "ja",
        "languageFile": "",
        "androidResource": "skin-config/languageFiles/ja.json",
        "iosResource": "ja"
      }
    ]
The localization files contain a list of translated phrases. For example, es.json contains the following JSON data:
{
  "Learn More" : "Más información",
  "CLOSED CAPTION PREVIEW": "VISTA PRELIMINAR DE SUBTÍTULOS",
  "Sample Text": "Texto de muestra",
  ...
}

If you host your own customized copy of the skin.json config file, you can also host your own localization files and reference them from skin.json as shown above. See Customizing the Player V4 Skin with skin.json for details about skin customization.

Was this article helpful?