defaultLocale.js 348 B

123456789101112131415161718
  1. import formatLocale from "./locale.js";
  2. var locale;
  3. export var format;
  4. export var formatPrefix;
  5. defaultLocale({
  6. thousands: ",",
  7. grouping: [3],
  8. currency: ["$", ""]
  9. });
  10. export default function defaultLocale(definition) {
  11. locale = formatLocale(definition);
  12. format = locale.format;
  13. formatPrefix = locale.formatPrefix;
  14. return locale;
  15. }