# Multi-Language Capability Applications designed based on the JS UI framework apply to different countries and regions. With the multi-language capability, you do not need to develop application versions in different languages, and your users can switch between various locales. This also facilitates project maintenance. You only need to perform operations in [Resource Files](#section733935013515) and [Resource Reference](#section522111116527) to use the multi-language capability of this framework. For details about how to obtain the current system language, see [Language Acquisition](#section2872192475310). ## Resource Files Resource files store application content in multiple languages. This framework uses JSON files to store resource definitions. Place the resource file of each locale in the **i18n** directory described in [File Organization](js-framework-file.md). Resource files should be named in _language-script-region_**.json** format. For example, the resource file for Hong Kong Chinese in the traditional script is named **zh-Hant-HK**. You can omit the region, for example, **zh-CN** for simplified Chinese, or omit both the script and region, for example, **zh** for Chinese. ``` language[-script-region].json ``` The following table describes the requirements for the qualifiers of resource file names. **Table 1** Requirements for qualifier values
See Table 3. |
Sets the parameters based on the system language, for example, this.$t('strings.hello'). |
Content used to replace placeholders during runtime. There are two types of placeholders available: |
See Table 3. |
Converts between the singular and plural forms based on the system language, for example, this.$tc('strings.people'). |