/** * the point of localization is to have a central, single source of truth * for the current locale. this can come from the browser, via a GET * parameter (mostly for testing), or explicitly from a method call. * * based on locale we report settings for decimal separator, digit grouping, * and argument separator. */ export declare class Localization { static locale: string; static decimal_separator: ('.' | ','); static argument_separator: ',' | ';'; static grouping_separator: ',' | ' '; static date_components: { short_days: string[]; long_days: string[]; short_months: string[]; long_months: string[]; }; /** * update the locale. this will be called on module load (should * be just once), but can be called subsequently to update. * * priority: * (1) function argument * (2) get parameter * (3) navigator.languages[0] * (4) navigator.language * * regarding languages[0] vs language, see * https://stackoverflow.com/a/33204290 * * @param locale explicitly set locale */ static UpdateLocale(locale?: string): void; private static UpdateDateComponent; }