ThisLocale Function

ThisLocale Function

Description:
This function returns the locale code that is currently active in the document. For custom locales, it returns the code of the locale used as the base locale.
This may be useful in cases where a template is used with multiple locales or the document has text in two languages and locale spans are applied to parts of the document. For example, it is possible to create a computable where the computation is conditional upon the current locale.
For more information on locale spans, see the article Span Locale.
Returns:
Locale code
Example:
This Locale()
Expression
Result
This Locale()
"en-US"