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.
18 lines
348 B
18 lines
348 B
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;
|
|
}
|
|
|