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": "//player.ooyala.com/static/v4/stable/4.1.4/skin-plugin/en.json",
        "androidResource": "skin-config/en.json",
        "iosResource": "en"
      },
      {
        "language": "es",
        "languageFile": "//player.ooyala.com/static/v4/stable/4.1.4/skin-plugin/es.json",
        "androidResource": "skin-config/es.json",
        "iosResource": "es"
      },
      {
        "language": "zh",
        "languageFile": "//player.ooyala.com/static/v4/stable/4.1.4/skin-plugin/zh.json",
        "androidResource": "skin-config/zh.json",
        "iosResource": "zh"
      }
    ]
The localization files contain a list of translated phrases. For example, es.json contains the following JSON:
{
  "Learn More" : "Más información",
  "CLOSED CAPTION PREVIEW": "VISTA PRELIMINAR DE SUBTÍTULOS",
  "Sample Text": "Texto de muestra",
  ...
}

To add your own localization files, add them to the config directory or other path of your choosing, and reference from skin.json as shown above.

Was this article helpful?