Function: register()
ts
function register(
what: RegisterType,
key: string,
value: NumeralJSLocale | NumeralJSFormat,
): NumeralJSLocale | NumeralJSFormat;Registers a language definition or a custom format definition.
Parameters
| Parameter | Type | Description |
|---|---|---|
what | RegisterType | Allowed values are: either 'format' or 'locale' |
key | string | The key of the registerd type, e.g. 'de' for a german locale definition |
value | | NumeralJSLocale | NumeralJSFormat | The locale definition or the format definitiion |