Customize player text

Add player text to improve word choice or address unsupported languages.

By default, the web player uses automated player localization. This feature creates a seamless and immersive viewer experience by automatically translating all player tooltips, error messages, headings, and ARIA labels into the same language as your page content.

Publishers typically customize the player text due to one of the reasons in the table.

ReasonDescription
Word choiceThe chosen default word does not align with your brand or market
Unsupported languageA language is not currently supported language

If your language is unsupported, submit a request for a new language before continuing with the instructions listed in this article.

To address either of the reasons in the table above, you can create an internationalization (intl) object. You can customize translations of specific words in the following categories.


Customize text

To customize a translation in any given language, use the following steps.

  1. Create an intl object.
  2. Within the intl object, create an object that uses the appropriate two-letter (ISO 639-1) or locale-specific (ISO 639-1 language-country combination) language code. The language code of the object should correspond to the language defined in HTML lang attribute of the page.
  3. Customize the translation by defining the value of the property.

The following example shows custom translations in multiple languages for different player elements.

jwplayer("myElement").setup({
  ...
  "intl": {
    
    // Quebec french sub-block
    "fr-ca": {
      "play": "Reproduire"
    },
    
    // french sub-block
    "fr": {
      "replay": "Repeter",
      "play": "Jouer"
    },  
  
    // spanish sub-block
    "es": {
      "replay": "Repetir"
    },
  
    // frisian sub-block
    "fy": {
      "advertising": {
        "loadingAd": "Advertinsje lade"
      }
    }
  }
});


Did this page help you?