You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
348 B
19 lines
348 B
|
4 months ago
|
import formatLocale from "./locale.js";
|
||
|
|
|
||
|
|
var locale;
|
||
|
|
export var format;
|
||
|
|
export var formatPrefix;
|
||
|
|
|
||
|
|
defaultLocale({
|
||
|
|
thousands: ",",
|
||
|
|
grouping: [3],
|
||
|
|
currency: ["$", ""]
|
||
|
|
});
|
||
|
|
|
||
|
|
export default function defaultLocale(definition) {
|
||
|
|
locale = formatLocale(definition);
|
||
|
|
format = locale.format;
|
||
|
|
formatPrefix = locale.formatPrefix;
|
||
|
|
return locale;
|
||
|
|
}
|