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, Simplified Chinese and English are used in an English environment while 简体中文 and 英文 are used in a Chinese environment. 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 Language names can be localized into representations in different languages. The following uses German as an example: 20 ```ts 21 let displayLanguage: string = i18n.System.getDisplayLanguage('de', 'zh-Hans-CN'); // displayLanguage = 'German' 22 // language: two-letter language code, for example, zh, de, or fr. 23 // locale: locale ID, 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 Country/region names can be localized into representations in different languages. The following uses Saudi Arabia as an example: 29 ```ts 30 let displayCountry: string = i18n.System.getDisplayCountry('SA', 'en-GB'); // displayCountry = 'Saudi Arabia' 31 // country: two-letter country/region code, for example, CN, DE, or SA. 32 // locale: locale ID, 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-->