# Language and UI Text

ByteArk Player supports localized menu labels and tooltips for the player UI. Configure via the language option.

# Supported languages

Code Language
en English (default)
th Thai

# Options

Name Type Required Description
language String No UI language code (e.g., en, th)
languages Object No Override or add custom translation strings

# Set the default language

var player = bytearkPlayer('video-player', {
  fluid: true,
  language: 'th',
  sources: [{
    title: 'Big Buck Bunny',
    src: '<MEDIA_URL>',
    type: 'application/x-mpegURL'
  }]
});
1
2
3
4
5
6
7
8
9

# Override UI strings

You can customize any of the UI strings by passing your own translations:

var player = bytearkPlayer('video-player', {
  fluid: true,
  language: 'en',
  languages: {
    en: {
      'Play': 'Start',
      'Pause': 'Stop',
      'Quality': 'Resolution',
    },
  },
  sources: [{
    title: 'Big Buck Bunny',
    src: '<MEDIA_URL>',
    type: 'application/x-mpegURL'
  }]
});
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16