UNPKG

24.6 kBJavaScriptView Raw
1/*!
2 * numeral.js language configuration
3 * language : belgium-dutch (be-nl)
4 * author : Dieter Luypaert : https://github.com/moeriki
5 */
6(function () {
7 var language = {
8 delimiters: {
9 thousands: ' ',
10 decimal : ','
11 },
12 abbreviations: {
13 thousand : 'k',
14 million : ' mln',
15 billion : ' mld',
16 trillion : ' bln'
17 },
18 ordinal : function (number) {
19 var remainder = number % 100;
20 return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
21 },
22 currency: {
23 symbol: '€ '
24 }
25 };
26
27 // Node
28 if (typeof module !== 'undefined' && module.exports) {
29 module.exports = language;
30 }
31 // Browser
32 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
33 this.numeral.language('be-nl', language);
34 }
35}());
36/*!
37 * numeral.js language configuration
38 * language : simplified chinese
39 * author : badplum : https://github.com/badplum
40 */
41(function () {
42 var language = {
43 delimiters: {
44 thousands: ',',
45 decimal: '.'
46 },
47 abbreviations: {
48 thousand: '千',
49 million: '百万',
50 billion: '十亿',
51 trillion: '兆'
52 },
53 ordinal: function (number) {
54 return '.';
55 },
56 currency: {
57 symbol: '¥'
58 }
59 };
60
61 // Node
62 if (typeof module !== 'undefined' && module.exports) {
63 module.exports = language;
64 }
65 // Browser
66 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
67 this.numeral.language('chs', language);
68 }
69}());
70
71/*!
72 * numeral.js language configuration
73 * language : czech (cs)
74 * author : Anatoli Papirovski : https://github.com/apapirovski
75 */
76(function () {
77 var language = {
78 delimiters: {
79 thousands: ' ',
80 decimal: ','
81 },
82 abbreviations: {
83 thousand: 'tis.',
84 million: 'mil.',
85 billion: 'b',
86 trillion: 't'
87 },
88 ordinal: function () {
89 return '.';
90 },
91 currency: {
92 symbol: 'Kč'
93 }
94 };
95
96 // Node
97 if (typeof module !== 'undefined' && module.exports) {
98 module.exports = language;
99 }
100 // Browser
101 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
102 this.numeral.language('cs', language);
103 }
104}());
105
106/*!
107 * numeral.js language configuration
108 * language : danish denmark (dk)
109 * author : Michael Storgaard : https://github.com/mstorgaard
110 */
111(function () {
112 var language = {
113 delimiters: {
114 thousands: '.',
115 decimal: ','
116 },
117 abbreviations: {
118 thousand: 'k',
119 million: 'mio',
120 billion: 'mia',
121 trillion: 'b'
122 },
123 ordinal: function (number) {
124 return '.';
125 },
126 currency: {
127 symbol: 'DKK'
128 }
129 };
130
131 // Node
132 if (typeof module !== 'undefined' && module.exports) {
133 module.exports = language;
134 }
135 // Browser
136 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
137 this.numeral.language('da-dk', language);
138 }
139}());
140/*!
141 * numeral.js language configuration
142 * language : German in Switzerland (de-ch)
143 * author : Michael Piefel : https://github.com/piefel (based on work from Marco Krage : https://github.com/sinky)
144 */
145(function () {
146 var language = {
147 delimiters: {
148 thousands: ' ',
149 decimal: ','
150 },
151 abbreviations: {
152 thousand: 'k',
153 million: 'm',
154 billion: 'b',
155 trillion: 't'
156 },
157 ordinal: function (number) {
158 return '.';
159 },
160 currency: {
161 symbol: 'CHF'
162 }
163 };
164
165 // Node
166 if (typeof module !== 'undefined' && module.exports) {
167 module.exports = language;
168 }
169 // Browser
170 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
171 this.numeral.language('de-ch', language);
172 }
173}());
174/*!
175 * numeral.js language configuration
176 * language : German (de) – generally useful in Germany, Austria, Luxembourg, Belgium
177 * author : Marco Krage : https://github.com/sinky
178 */
179(function () {
180 var language = {
181 delimiters: {
182 thousands: ' ',
183 decimal: ','
184 },
185 abbreviations: {
186 thousand: 'k',
187 million: 'm',
188 billion: 'b',
189 trillion: 't'
190 },
191 ordinal: function (number) {
192 return '.';
193 },
194 currency: {
195 symbol: '€'
196 }
197 };
198
199 // Node
200 if (typeof module !== 'undefined' && module.exports) {
201 module.exports = language;
202 }
203 // Browser
204 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
205 this.numeral.language('de', language);
206 }
207}());
208/*!
209 * numeral.js language configuration
210 * language : english united kingdom (uk)
211 * author : Dan Ristic : https://github.com/dristic
212 */
213(function () {
214 var language = {
215 delimiters: {
216 thousands: ',',
217 decimal: '.'
218 },
219 abbreviations: {
220 thousand: 'k',
221 million: 'm',
222 billion: 'b',
223 trillion: 't'
224 },
225 ordinal: function (number) {
226 var b = number % 10;
227 return (~~ (number % 100 / 10) === 1) ? 'th' :
228 (b === 1) ? 'st' :
229 (b === 2) ? 'nd' :
230 (b === 3) ? 'rd' : 'th';
231 },
232 currency: {
233 symbol: '£'
234 }
235 };
236
237 // Node
238 if (typeof module !== 'undefined' && module.exports) {
239 module.exports = language;
240 }
241 // Browser
242 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
243 this.numeral.language('en-gb', language);
244 }
245}());
246/*!
247 * numeral.js language configuration
248 * language : spanish Spain
249 * author : Hernan Garcia : https://github.com/hgarcia
250 */
251(function () {
252 var language = {
253 delimiters: {
254 thousands: '.',
255 decimal: ','
256 },
257 abbreviations: {
258 thousand: 'k',
259 million: 'mm',
260 billion: 'b',
261 trillion: 't'
262 },
263 ordinal: function (number) {
264 var b = number % 10;
265 return (b === 1 || b === 3) ? 'er' :
266 (b === 2) ? 'do' :
267 (b === 7 || b === 0) ? 'mo' :
268 (b === 8) ? 'vo' :
269 (b === 9) ? 'no' : 'to';
270 },
271 currency: {
272 symbol: '€'
273 }
274 };
275
276 // Node
277 if (typeof module !== 'undefined' && module.exports) {
278 module.exports = language;
279 }
280 // Browser
281 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
282 this.numeral.language('es', language);
283 }
284}());
285
286/*!
287 * numeral.js language configuration
288 * language : spanish
289 * author : Hernan Garcia : https://github.com/hgarcia
290 */
291(function () {
292 var language = {
293 delimiters: {
294 thousands: '.',
295 decimal: ','
296 },
297 abbreviations: {
298 thousand: 'k',
299 million: 'mm',
300 billion: 'b',
301 trillion: 't'
302 },
303 ordinal: function (number) {
304 var b = number % 10;
305 return (b === 1 || b === 3) ? 'er' :
306 (b === 2) ? 'do' :
307 (b === 7 || b === 0) ? 'mo' :
308 (b === 8) ? 'vo' :
309 (b === 9) ? 'no' : 'to';
310 },
311 currency: {
312 symbol: '$'
313 }
314 };
315
316 // Node
317 if (typeof module !== 'undefined' && module.exports) {
318 module.exports = language;
319 }
320 // Browser
321 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
322 this.numeral.language('es', language);
323 }
324}());
325
326/*!
327 * numeral.js language configuration
328 * language : Estonian
329 * author : Illimar Tambek : https://github.com/ragulka
330 *
331 * Note: in Estonian, abbreviations are always separated
332 * from numbers with a space
333 */
334(function () {
335 var language = {
336 delimiters: {
337 thousands: ' ',
338 decimal: ','
339 },
340 abbreviations: {
341 thousand: ' tuh',
342 million: ' mln',
343 billion: ' mld',
344 trillion: ' trl'
345 },
346 ordinal: function (number) {
347 return '.';
348 },
349 currency: {
350 symbol: '€'
351 }
352 };
353
354 // Node
355 if (typeof module !== 'undefined' && module.exports) {
356 module.exports = language;
357 }
358 // Browser
359 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
360 this.numeral.language('et', language);
361 }
362}());
363
364/*!
365 * numeral.js language configuration
366 * language : Finnish
367 * author : Sami Saada : https://github.com/samitheberber
368 */
369(function () {
370 var language = {
371 delimiters: {
372 thousands: ' ',
373 decimal: ','
374 },
375 abbreviations: {
376 thousand: 'k',
377 million: 'M',
378 billion: 'G',
379 trillion: 'T'
380 },
381 ordinal: function (number) {
382 return '.';
383 },
384 currency: {
385 symbol: '€'
386 }
387 };
388
389 // Node
390 if (typeof module !== 'undefined' && module.exports) {
391 module.exports = language;
392 }
393 // Browser
394 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
395 this.numeral.language('fi', language);
396 }
397}());
398
399/*!
400 * numeral.js language configuration
401 * language : french (Canada) (fr-CA)
402 * author : Léo Renaud-Allaire : https://github.com/renaudleo
403 */
404(function () {
405 var language = {
406 delimiters: {
407 thousands: ' ',
408 decimal: ','
409 },
410 abbreviations: {
411 thousand: 'k',
412 million: 'M',
413 billion: 'G',
414 trillion: 'T'
415 },
416 ordinal : function (number) {
417 return number === 1 ? 'er' : 'e';
418 },
419 currency: {
420 symbol: '$'
421 }
422 };
423
424 // Node
425 if (typeof module !== 'undefined' && module.exports) {
426 module.exports = language;
427 }
428 // Browser
429 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
430 this.numeral.language('fr-CA', language);
431 }
432}());
433/*!
434 * numeral.js language configuration
435 * language : french (fr-ch)
436 * author : Adam Draper : https://github.com/adamwdraper
437 */
438(function () {
439 var language = {
440 delimiters: {
441 thousands: '\'',
442 decimal: '.'
443 },
444 abbreviations: {
445 thousand: 'k',
446 million: 'm',
447 billion: 'b',
448 trillion: 't'
449 },
450 ordinal : function (number) {
451 return number === 1 ? 'er' : 'e';
452 },
453 currency: {
454 symbol: 'CHF'
455 }
456 };
457
458 // Node
459 if (typeof module !== 'undefined' && module.exports) {
460 module.exports = language;
461 }
462 // Browser
463 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
464 this.numeral.language('fr-ch', language);
465 }
466}());
467
468/*!
469 * numeral.js language configuration
470 * language : french (fr)
471 * author : Adam Draper : https://github.com/adamwdraper
472 */
473(function () {
474 var language = {
475 delimiters: {
476 thousands: ' ',
477 decimal: ','
478 },
479 abbreviations: {
480 thousand: 'k',
481 million: 'm',
482 billion: 'b',
483 trillion: 't'
484 },
485 ordinal : function (number) {
486 return number === 1 ? 'er' : 'e';
487 },
488 currency: {
489 symbol: '€'
490 }
491 };
492
493 // Node
494 if (typeof module !== 'undefined' && module.exports) {
495 module.exports = language;
496 }
497 // Browser
498 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
499 this.numeral.language('fr', language);
500 }
501}());
502/*!
503 * numeral.js language configuration
504 * language : Hungarian (hu)
505 * author : Peter Bakondy : https://github.com/pbakondy
506 */
507(function () {
508 var language = {
509 delimiters: {
510 thousands: ' ',
511 decimal: ','
512 },
513 abbreviations: {
514 thousand: 'E', // ezer
515 million: 'M', // millió
516 billion: 'Mrd', // milliárd
517 trillion: 'T' // trillió
518 },
519 ordinal: function (number) {
520 return '.';
521 },
522 currency: {
523 symbol: ' Ft'
524 }
525 };
526
527 // Node
528 if (typeof module !== 'undefined' && module.exports) {
529 module.exports = language;
530 }
531 // Browser
532 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
533 this.numeral.language('hu', language);
534 }
535}());
536/*!
537 * numeral.js language configuration
538 * language : italian Italy (it)
539 * author : Giacomo Trombi : http://cinquepunti.it
540 */
541(function () {
542 var language = {
543 delimiters: {
544 thousands: '.',
545 decimal: ','
546 },
547 abbreviations: {
548 thousand: 'mila',
549 million: 'mil',
550 billion: 'b',
551 trillion: 't'
552 },
553 ordinal: function (number) {
554 return 'º';
555 },
556 currency: {
557 symbol: '€'
558 }
559 };
560
561 // Node
562 if (typeof module !== 'undefined' && module.exports) {
563 module.exports = language;
564 }
565 // Browser
566 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
567 this.numeral.language('it', language);
568 }
569}());
570/*!
571 * numeral.js language configuration
572 * language : japanese
573 * author : teppeis : https://github.com/teppeis
574 */
575(function () {
576 var language = {
577 delimiters: {
578 thousands: ',',
579 decimal: '.'
580 },
581 abbreviations: {
582 thousand: '千',
583 million: '百万',
584 billion: '十億',
585 trillion: '兆'
586 },
587 ordinal: function (number) {
588 return '.';
589 },
590 currency: {
591 symbol: '¥'
592 }
593 };
594
595 // Node
596 if (typeof module !== 'undefined' && module.exports) {
597 module.exports = language;
598 }
599 // Browser
600 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
601 this.numeral.language('ja', language);
602 }
603}());
604
605/*!
606 * numeral.js language configuration
607 * language : netherlands-dutch (nl-nl)
608 * author : Dave Clayton : https://github.com/davedx
609 */
610(function () {
611 var language = {
612 delimiters: {
613 thousands: '.',
614 decimal : ','
615 },
616 abbreviations: {
617 thousand : 'k',
618 million : 'mln',
619 billion : 'mrd',
620 trillion : 'bln'
621 },
622 ordinal : function (number) {
623 var remainder = number % 100;
624 return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
625 },
626 currency: {
627 symbol: '€ '
628 }
629 };
630
631 // Node
632 if (typeof module !== 'undefined' && module.exports) {
633 module.exports = language;
634 }
635 // Browser
636 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
637 this.numeral.language('nl-nl', language);
638 }
639}());
640/*!
641 * numeral.js language configuration
642 * language : polish (pl)
643 * author : Dominik Bulaj : https://github.com/dominikbulaj
644 */
645(function () {
646 var language = {
647 delimiters: {
648 thousands: ' ',
649 decimal: ','
650 },
651 abbreviations: {
652 thousand: 'tys.',
653 million: 'mln',
654 billion: 'mld',
655 trillion: 'bln'
656 },
657 ordinal: function (number) {
658 return '.';
659 },
660 currency: {
661 symbol: 'PLN'
662 }
663 };
664
665 // Node
666 if (typeof module !== 'undefined' && module.exports) {
667 module.exports = language;
668 }
669 // Browser
670 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
671 this.numeral.language('pl', language);
672 }
673}());
674/*!
675 * numeral.js language configuration
676 * language : portuguese brazil (pt-br)
677 * author : Ramiro Varandas Jr : https://github.com/ramirovjr
678 */
679(function () {
680 var language = {
681 delimiters: {
682 thousands: '.',
683 decimal: ','
684 },
685 abbreviations: {
686 thousand: 'mil',
687 million: 'milhões',
688 billion: 'b',
689 trillion: 't'
690 },
691 ordinal: function (number) {
692 return 'º';
693 },
694 currency: {
695 symbol: 'R$'
696 }
697 };
698
699 // Node
700 if (typeof module !== 'undefined' && module.exports) {
701 module.exports = language;
702 }
703 // Browser
704 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
705 this.numeral.language('pt-br', language);
706 }
707}());
708/*!
709 * numeral.js language configuration
710 * language : portuguese (pt-pt)
711 * author : Diogo Resende : https://github.com/dresende
712 */
713(function () {
714 var language = {
715 delimiters: {
716 thousands: ' ',
717 decimal: ','
718 },
719 abbreviations: {
720 thousand: 'k',
721 million: 'm',
722 billion: 'b',
723 trillion: 't'
724 },
725 ordinal : function (number) {
726 return 'º';
727 },
728 currency: {
729 symbol: '€'
730 }
731 };
732
733 // Node
734 if (typeof module !== 'undefined' && module.exports) {
735 module.exports = language;
736 }
737 // Browser
738 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
739 this.numeral.language('pt-pt', language);
740 }
741}());
742
743// numeral.js language configuration
744// language : Russian for the Ukraine (ru-UA)
745// author : Anatoli Papirovski : https://github.com/apapirovski
746(function () {
747 var language = {
748 delimiters: {
749 thousands: ' ',
750 decimal: ','
751 },
752 abbreviations: {
753 thousand: 'тыс.',
754 million: 'млн',
755 billion: 'b',
756 trillion: 't'
757 },
758 ordinal: function () {
759 // not ideal, but since in Russian it can taken on
760 // different forms (masculine, feminine, neuter)
761 // this is all we can do
762 return '.';
763 },
764 currency: {
765 symbol: '\u20B4'
766 }
767 };
768
769 // Node
770 if (typeof module !== 'undefined' && module.exports) {
771 module.exports = language;
772 }
773 // Browser
774 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
775 this.numeral.language('ru-UA', language);
776 }
777}());
778
779/*!
780 * numeral.js language configuration
781 * language : russian (ru)
782 * author : Anatoli Papirovski : https://github.com/apapirovski
783 */
784(function () {
785 var language = {
786 delimiters: {
787 thousands: ' ',
788 decimal: ','
789 },
790 abbreviations: {
791 thousand: 'тыс.',
792 million: 'млн',
793 billion: 'b',
794 trillion: 't'
795 },
796 ordinal: function () {
797 // not ideal, but since in Russian it can taken on
798 // different forms (masculine, feminine, neuter)
799 // this is all we can do
800 return '.';
801 },
802 currency: {
803 symbol: 'руб.'
804 }
805 };
806
807 // Node
808 if (typeof module !== 'undefined' && module.exports) {
809 module.exports = language;
810 }
811 // Browser
812 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
813 this.numeral.language('ru', language);
814 }
815}());
816
817/*!
818 * numeral.js language configuration
819 * language : slovak (sk)
820 * author : Ahmed Al Hafoudh : http://www.freevision.sk
821 */
822(function () {
823 var language = {
824 delimiters: {
825 thousands: ' ',
826 decimal: ','
827 },
828 abbreviations: {
829 thousand: 'tis.',
830 million: 'mil.',
831 billion: 'b',
832 trillion: 't'
833 },
834 ordinal: function () {
835 return '.';
836 },
837 currency: {
838 symbol: '€'
839 }
840 };
841
842 // Node
843 if (typeof module !== 'undefined' && module.exports) {
844 module.exports = language;
845 }
846 // Browser
847 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
848 this.numeral.language('sk', language);
849 }
850}());
851
852/*!
853 * numeral.js language configuration
854 * language : thai (th)
855 * author : Sathit Jittanupat : https://github.com/jojosati
856 */
857(function () {
858 var language = {
859 delimiters: {
860 thousands: ',',
861 decimal: '.'
862 },
863 abbreviations: {
864 thousand: 'พัน',
865 million: 'ล้าน',
866 billion: 'พันล้าน',
867 trillion: 'ล้านล้าน'
868 },
869 ordinal: function (number) {
870 return '.';
871 },
872 currency: {
873 symbol: '฿'
874 }
875 };
876
877 // Node
878 if (typeof module !== 'undefined' && module.exports) {
879 module.exports = language;
880 }
881 // Browser
882 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
883 this.numeral.language('th', language);
884 }
885}());
886
887/*!
888 * numeral.js language configuration
889 * language : turkish (tr)
890 * author : Ecmel Ercan : https://github.com/ecmel, Erhan Gundogan : https://github.com/erhangundogan, Burak Yiğit Kaya: https://github.com/BYK
891 */
892(function () {
893 var suffixes = {
894 1: '\'inci',
895 5: '\'inci',
896 8: '\'inci',
897 70: '\'inci',
898 80: '\'inci',
899
900 2: '\'nci',
901 7: '\'nci',
902 20: '\'nci',
903 50: '\'nci',
904
905 3: '\'üncü',
906 4: '\'üncü',
907 100: '\'üncü',
908
909 6: '\'ncı',
910
911 9: '\'uncu',
912 10: '\'uncu',
913 30: '\'uncu',
914
915 60: '\'ıncı',
916 90: '\'ıncı'
917 },
918 language = {
919 delimiters: {
920 thousands: '.',
921 decimal: ','
922 },
923 abbreviations: {
924 thousand: 'bin',
925 million: 'milyon',
926 billion: 'milyar',
927 trillion: 'trilyon'
928 },
929 ordinal: function (number) {
930 if (number === 0) { // special case for zero
931 return '\'ıncı';
932 }
933
934 var a = number % 10,
935 b = number % 100 - a,
936 c = number >= 100 ? 100 : null;
937
938 return suffixes[a] || suffixes[b] || suffixes[c];
939 },
940 currency: {
941 symbol: '\u20BA'
942 }
943 };
944
945 // Node
946 if (typeof module !== 'undefined' && module.exports) {
947 module.exports = language;
948 }
949 // Browser
950 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
951 this.numeral.language('tr', language);
952 }
953}());
954
955// numeral.js language configuration
956// language : Ukrainian for the Ukraine (uk-UA)
957// author : Michael Piefel : https://github.com/piefel (with help from Tetyana Kuzmenko)
958(function () {
959 var language = {
960 delimiters: {
961 thousands: ' ',
962 decimal: ','
963 },
964 abbreviations: {
965 thousand: 'тис.',
966 million: 'млн',
967 billion: 'млрд',
968 trillion: 'блн'
969 },
970 ordinal: function () {
971 // not ideal, but since in Ukrainian it can taken on
972 // different forms (masculine, feminine, neuter)
973 // this is all we can do
974 return '';
975 },
976 currency: {
977 symbol: '\u20B4'
978 }
979 };
980
981 // Node
982 if (typeof module !== 'undefined' && module.exports) {
983 module.exports = language;
984 }
985 // Browser
986 if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
987 this.numeral.language('uk-UA', language);
988 }
989}());