@nexim/localizer
Version:
Lightweight i18n utilities to handle translations, number formatting, date/time localization using native browser APIs.
23 lines (15 loc) • 358 B
Markdown
[@nexim/localizer](../README.md) / LocaleCode
# Type Alias: LocaleCode
> **LocaleCode** = `` `${Lowercase<string>}-${Uppercase<string>}` ``
Represents a locale code in the format "language-COUNTRY".
The language part must be in lowercase, and the country part must be in uppercase.
## Examples
```ts
'en-US';
```
```ts
'fr-FR';
```
```ts
'de-DE';
```