React UIKit has built-in English, Japanese, Korean, Chinese (Simplified), and Chinese (Traditional) language packs as the interface display language.
Using Default Supported Languages
If your App only requires English, Japanese, Korean, Chinese (Simplified), or Chinese (Traditional), and does not need new entries or modifications to existing translations, see this section. The following languages are supported by default:
en-US - English
zh-CN - Simplified Chinese
zh-TW - Traditional Chinese
ja-JP - Japanese
ko-KR - Korean
auto - auto-detection
Among them, automatic detection (auto) selects the language in the following priority:
1. Browser language settings.
2. System language settings.
3. Fall back to en-US by default.
Specify a Language
Wrap your application with UIKitProvider and set the language attribute:
// language support en-US / zh-CN / ja-JP / ko-KR / zh-TW / auto
UIKitProvider within can use the useUIKit Hook to access internationalization features. However, since the useUIKit Hook is based on Context implementation, it cannot be called externally outside <UIKitProvider />.