1# Language and Locale Name Localization 2 3 4## Use Cases 5 6Language and locale name localization means to localize language and locale names on the UI based on local language habits. For example, in an English environment, Simplified Chinese is represented by 简体中文. 7 8 9## How to Develop 10 11For details about the APIs, see [getDisplayCountry](../reference/apis-localization-kit/js-apis-i18n.md#getdisplaycountry9) and [getDisplayLanguage](../reference/apis-localization-kit/js-apis-i18n.md#getdisplaylanguage9). 12 131. Import the **i18n** module. 14 ```ts 15 import { i18n } from '@kit.LocalizationKit'; 16 ``` 17 182. Localize language names. 19 When providing language names for a user, for example, when a user switches the system language, the system displays the localized language names. The following uses provides an example of displaying German in a way similar to Chinese. 20 ```ts 21 let displayLanguage = i18n.System.getDisplayLanguage("de", "zh-Hans-CN"); // German 22 // language: two-letter language code, for example, zh, de, or fr. 23 // locale: localization identifier, for example, en-GB, en-US, or zh-Hans-CN. 24 // sentenceCase: whether the first letter of the language name needs to be capitalized. The default value is true. 25 ``` 26 273. Localize country/region names. 28 When providing country/region names for a user, for example, when a user switches the country/region, the system displays the localized country/region names. 29 ```ts 30 let displayCountry = i18n.System.getDisplayCountry("SA", "en-GB"); // Saudi Arabia 31 // country: two-letter country/region code, for example, CN, DE, or SA. 32 // locale: localization identifier, for example, en-GB, en-US, or zh-Hans-CN. 33 // sentenceCase: whether the first letter of the country/region name needs to be capitalized. The default value is true. 34 ``` 35<!--no_check-->