# Application Configuration ## Module to Import ``` import configuration from '@system.configuration'; ``` ## Required Permissions None ## configuration.getLocale getLocale\(\): <[LocaleResponse](#table1544853546)\> Obtains the current locale of the application, which is the same as the system locale. - 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); } } ```