# Application Configuration > ![icon-note.gif](public_sys-resources/icon-note.gif) **Note:** > - The APIs of this module are no longer maintained since API version 7. It is recommended that you use [`@ohos.i18n`](js-apis-i18n.md) and [`@ohos.intl`](js-apis-intl.md) instead. > > > - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. ## Modules to Import ``` import configuration from '@system.configuration'; ``` ## configuration.getLocale getLocale(): <LocaleResponse> Obtains the current locale of the application, which is the same as the system locale. **System capability**: SystemCapability.ArkUI.ArkUI.Lite **Return values** **Table 1** LocaleResponse | Name | Type | Description | | -------- | -------- | -------- | | language | string | Current language of the application, for example, **zh**. | | countryOrRegion | string | Country or region, for example, **CN**. | | dir | string | Text layout direction. Available values are as follows:
- **ltr**: The text direction is from left to right.
- **rtl**: The text direction is from right to left. | | unicodeSetting5+ | string | Unicode key set determined by the locale.
For example, **{"nu":"arab"}** indicates that the current locale uses Arabic numerals.
If the current locale does not have a specific key set, an empty set is returned. | **Example** ``` export default { getLocale() { const localeInfo = configuration.getLocale(); console.info(localeInfo.language); } } ```