Function: isLocaleTag()
isLocaleTag(
value):value is string
Defined in: src/lib/classes/UiSettings/index.ts:47
Whether a value can be a locale tag (letters, digits and hyphens, at most MAX_LOCALE_LENGTH characters).
Parameters
value
unknown
Returns
value is string
Example
isLocaleTag("zh-Hant"); // true
isLocaleTag("<script>"); // false