Skip to content

Function: localeData()

ts
function localeData(key?: string): NumeralJSLocale;

This function provides access to the loaded locale data. If no arguments are passed in, it will simply return the current global locale object.

Parameters

ParameterTypeDescription
key?stringLocale key, e.g 'es' for a spanish locale definition

Returns

NumeralJSLocale