# Language and UI Text
ByteArk Player SDK for iOS supports displaying the player's built-in UI (settings menu, control labels, tooltips, error messages, and so on) in English or Thai. Set the UI language with .language(_:) on ByteArkPlayerConfigBuilder.
# Set the UI language
let config = try ByteArkPlayerConfigBuilder(licenseKey: "<YOUR_LICENSE_KEY>")
.item(item)
.language(.thai)
.build()
1
2
3
4
2
3
4
# Supported languages
ByteArkPlayerLanguage has three cases:
| Value | Behavior |
|---|---|
.english | Always English, independent of the device language. This is the default. |
.thai | Always Thai, regardless of the device language. |
.system | Follow the device's preferred language, falling back to English for languages the SDK does not ship. |
# Change the language at runtime
The UI language is fixed when the configuration is built. To change it at runtime, build a new config with a different .language(...) and call configure(with:) again.
let config = try ByteArkPlayerConfigBuilder(licenseKey: "<YOUR_LICENSE_KEY>")
.item(item)
.language(.system)
.build()
player.configure(with: config)
1
2
3
4
5
6
2
3
4
5
6