LOCALE (System Variable)

Displays a code that indicates the current language.

(Read-only)
Type: String
Saved in: Not-saved
Initial value: Varies by country/region

This code appears as a two or more-letter abbreviation which represents the current language returned by the Windows GetLocaleInfo function using the LOCALE_SISO639LANGNAME constant.

Note: Prior to AutoCAD 2019-based products, the code was a three-letter abbreviation returned by the Windows GetLocaleInfo function using the LOCALE_SABBREVLANGNAME constant. The three-letter abbreviation was based on two pieces of information; a two-letter language abbreviation along with a third letter that indicated sublanguage. For example, ENU represented a combination of English language (EN) and United States (U) as the sublanguage.