source: node_modules/d3-format/src/defaultLocale.js@ a762898

Last change on this file since a762898 was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Prototype 1.1

  • Property mode set to 100644
File size: 348 bytes
Line 
1import formatLocale from "./locale.js";
2
3var locale;
4export var format;
5export var formatPrefix;
6
7defaultLocale({
8 thousands: ",",
9 grouping: [3],
10 currency: ["$", ""]
11});
12
13export default function defaultLocale(definition) {
14 locale = formatLocale(definition);
15 format = locale.format;
16 formatPrefix = locale.formatPrefix;
17 return locale;
18}
Note: See TracBrowser for help on using the repository browser.