TUIKit Compose includes built-in language packs for English, Simplified Chinese, Traditional Chinese, and Arabic as default interface languages.English | Arabic | Simplified Chinese |
![]() | ![]() | ![]() |
TUIKit Compose automatically adapts to the system language without additional configuration. If the system language is not one of the four supported languages, the interface defaults to English.TUIKit Compose, use setApplicationLocales to set the desired language. Once specified, the component will not follow the system language. Example:// Supported languages:// "zh" for Simplified Chinese// "zh-hk" for Traditional Chinese// "en" for English// "ar" for ArabicAppCompatDelegate.setApplicationLocales(LocaleListCompat.forLanguageTags("zh"))
setApplicationLocales method requires a dependency on androidx.appcompat:appcompat, version 1.6.0 or higher.values-ko directory and the corresponding string resource files under the res directory for each module. ko is the language code for Korean, following Android resource qualifier conventions. After adding Korean, your project structure will look like this:chat/demo/app/src/main/res/├── values/strings.xml├── values-zh/strings.xml├── values-zh-rHK/strings.xml├── values-ar/strings.xml└── values-ko/strings.xmlchat/uikit/src/main/res/├── values/strings.xml├── values-zh/strings.xml├── values-zh-rHK/strings.xml├── values-ar/strings.xml└── values-ko/strings.xmlatomic-x/src/main/├── res-album-picker/values-ko/strings.xml├── res-base-component/values-ko/strings.xml├── res-chat-setting/values-ko/strings.xml├── res-contact-list/values-ko/strings.xml├── res-conversation-list/values-ko/strings.xml├── res-emoji-picker/values-ko/strings.xml├── res-emoji-picker/values-ko/strings-emoji.xml├── res-message-input/values-ko/strings.xml├── res-message-list/values-ko/strings.xml├── res-search/values-ko/strings.xml└── res-video-recorder/values-ko/strings.xml
strings.xml file in each module as a reference and translate each key into Korean.TUIKit Compose are distributed across multiple modules: app, uikit, and atomic-x. Add values-ko to all relevant modules.res-emoji-picker module includes both strings.xml and strings-emoji.xml. When adding a new language, complete both files.values-ko/strings.xml), the string keys remain consistent across language files. Customize translation content as needed for your business. To update specific text, override the relevant entry in the target module; you do not need to modify other language files.values-ko.setApplicationLocales, clear the setting to revert to system language adaptation:AppCompatDelegate.setApplicationLocales(LocaleListCompat.getEmptyLocaleList())
TUIKit Compose to Korean, use setApplicationLocales with the Korean language code. Once set, the component will not follow the system language. Example:// Supported languages:// "zh" for Simplified Chinese// "zh-hk" for Traditional Chinese// "en" for English// "ar" for Arabic// "ko" for KoreanAppCompatDelegate.setApplicationLocales(LocaleListCompat.forLanguageTags("ko"))

Language | Code | Language | Code |
Arabic | ar | Bulgarian | bg |
Croatian | hr | Czech | cs |
Danish | da | German | de |
Greek | el | English | en |
Estonian | et | Spanish | es |
Finnish | fi | French | fr |
Irish | ga | Hindi | hi |
Hungarian | hu | Hebrew | he |
Italian | it | Japanese | ja |
Korean | ko | Latvian | lv |
Lithuanian | lt | Dutch | nl |
Norwegian | no | Polish | pl |
Portuguese | pt | Swedish | sv |
Romanian | ro | Russian | ru |
Serbian | sr | Slovak | sk |
Slovenian | sl | Thai | th |
Turkish | tr | Ukrainian | uk |
Chinese (Simplified) | zh | Chinese (Traditional) | zh-rHK |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback