From 939cddbfee70d4b32ed7095f2d889781d8f9041d Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Sun, 25 Oct 2015 20:12:46 -0700 Subject: [PATCH] Add hu-HU locale. --- README.md | 1 + index.js | 2 ++ src/locale/hu-HU.js | 6 ++++++ 3 files changed, 9 insertions(+) create mode 100644 src/locale/hu-HU.js diff --git a/README.md b/README.md index d421646..aab0f4b 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,7 @@ Returns a *locale* object for the specified *definition* with [*locale*.format]( * `"fr-CA"` - [French (Canada)](https://github.com/d3/d3-format/tree/master/src/locale/fr-CA.js) * `"fr-FR"` - [French (France)](https://github.com/d3/d3-format/tree/master/src/locale/fr-FR.js) * `"he-IL"` - [Hebrew (Israel)](https://github.com/d3/d3-format/tree/master/src/locale/he-IL.js) +* `"hu-HU"` - [Hungarian (Hungary)](https://github.com/d3/d3-format/tree/master/src/locale/hu-HU.js) * `"it-IT"` - [Italian (Italy)](https://github.com/d3/d3-format/tree/master/src/locale/it-IT.js) * `"ja-JP"` - [Japanese (Japan)](https://github.com/d3/d3-format/tree/master/src/locale/ja-JP.js) * `"ko-KR"` - [Korean (South Korea)](https://github.com/d3/d3-format/tree/master/src/locale/ko-KR.js) diff --git a/index.js b/index.js index 7356db6..8370271 100644 --- a/index.js +++ b/index.js @@ -15,6 +15,7 @@ import fiFi from "./src/locale/fi-FI"; import frCa from "./src/locale/fr-CA"; import frFr from "./src/locale/fr-FR"; import heIl from "./src/locale/he-IL"; +import huHu from "./src/locale/hu-HU"; import itIt from "./src/locale/it-IT"; import jaJp from "./src/locale/ja-JP"; import koKr from "./src/locale/ko-KR"; @@ -38,6 +39,7 @@ var localeDefinitions = { "fr-CA": frCa, "fr-FR": frFr, "he-IL": heIl, + "hu-HU": huHu, "it-IT": itIt, "ja-JP": jaJp, "ko-KR": koKr, diff --git a/src/locale/hu-HU.js b/src/locale/hu-HU.js new file mode 100644 index 0000000..b9ab854 --- /dev/null +++ b/src/locale/hu-HU.js @@ -0,0 +1,6 @@ +export default { + decimal: ",", + thousands: "\xa0", + grouping: [3], + currency: ["", "\xa0Ft"] +};