Permalink
Browse files

add locales dir with unmagnified

  • Loading branch information...
1 parent f598436 commit 0e500ee2c1ca6aa6a8704901c4d1521a3953fd39 Adam Draper committed Dec 17, 2016
Showing with 1,153 additions and 1 deletion.
  1. +17 −1 Gruntfile.js
  2. +34 −0 locales/be-nl.js
  3. +40 −0 locales/bg.js
  4. +32 −0 locales/chs.js
  5. +32 −0 locales/cs.js
  6. +32 −0 locales/da-dk.js
  7. +32 −0 locales/de-ch.js
  8. +32 −0 locales/de.js
  9. +36 −0 locales/en-au.js
  10. +36 −0 locales/en-gb.js
  11. +36 −0 locales/en-za.js
  12. +37 −0 locales/es-es.js
  13. +37 −0 locales/es.js
  14. +33 −0 locales/et.js
  15. +32 −0 locales/fi.js
  16. +32 −0 locales/fr-ca.js
  17. +32 −0 locales/fr-ch.js
  18. +32 −0 locales/fr.js
  19. +32 −0 locales/hu.js
  20. +32 −0 locales/it.js
  21. +32 −0 locales/ja.js
  22. +32 −0 locales/lv.js
  23. +33 −0 locales/nl-nl.js
  24. +32 −0 locales/no.js
  25. +32 −0 locales/pl.js
  26. +32 −0 locales/pt-br.js
  27. +32 −0 locales/pt-pt.js
  28. +35 −0 locales/ru-ua.js
  29. +35 −0 locales/ru.js
  30. +32 −0 locales/sk.js
  31. +32 −0 locales/sl.js
  32. +34 −0 locales/th.js
  33. +66 −0 locales/tr.js
  34. +35 −0 locales/uk-ua.js
  35. +1 −0 package.json
View
@@ -78,6 +78,20 @@ module.exports = function(grunt) {
configFile: 'karma-ci.conf.js'
}
},
+ copy: {
+ locales: {
+ files: [
+ {
+ expand: true,
+ cwd: 'src/',
+ src: [
+ 'locales/*.js'
+ ],
+ dest: './'
+ }
+ ]
+ }
+ },
compile: {
locales: {
type: 'locales'
@@ -138,6 +152,7 @@ module.exports = function(grunt) {
}
});
+ grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-mocha-test');
@@ -154,7 +169,8 @@ module.exports = function(grunt) {
grunt.registerTask('build', [
'jshint',
'compile',
- 'compile:numeral'
+ 'compile:numeral',
+ 'copy'
]);
grunt.registerTask('test', [
View
@@ -0,0 +1,34 @@
+// numeral.js locale configuration
+// locale : belgium-dutch (be-nl)
+// author : Dieter Luypaert : https://github.com/moeriki
+
+(function (global, factory) {
+ if (typeof define === 'function' && define.amd) {
+ define(['../numeral'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ factory(require('../numeral'));
+ } else {
+ factory(global.numeral);
+ }
+}(this, function (numeral) {
+ numeral.register('locale', 'be-nl', {
+ delimiters: {
+ thousands: ' ',
+ decimal : ','
+ },
+ abbreviations: {
+ thousand : 'k',
+ million : ' mln',
+ billion : ' mld',
+ trillion : ' bln'
+ },
+ ordinal : function (number) {
+ var remainder = number % 100;
+
+ return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
+ },
+ currency: {
+ symbol: ''
+ }
+ });
+}));
View
@@ -0,0 +1,40 @@
+// numeral.js locale configuration
+// locale : Bulgarian
+// author : Don Vince : https://github.com/donvince/
+
+(function (global, factory) {
+ if (typeof define === 'function' && define.amd) {
+ define(['../numeral'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ factory(require('../numeral'));
+ } else {
+ factory(global.numeral);
+ }
+}(this, function (numeral) {
+ numeral.register('locale', 'bg', {
+ delimiters: {
+ thousands: ' ',
+ decimal: ','
+ },
+ abbreviations: { // I found these here http://www.unicode.org/cldr/charts/28/verify/numbers/bg.html
+ thousand: 'хил',
+ million: 'млн',
+ billion: 'млрд',
+ trillion: 'трлн'
+ },
+ ordinal: function (number) {
+ // google translate suggests:
+ // 1st=1-ви; 2nd=2-ри; 7th=7-ми;
+ // 8th=8-ми and many others end with -ти
+ // for example 3rd=3-ти
+ // However since I've seen suggestions that in
+ // Bulgarian the ordinal can be taken in
+ // different forms (masculine, feminine, neuter)
+ // I've opted to wimp out on commiting that to code
+ return '';
+ },
+ currency: {
+ symbol: 'лв'
+ }
+ });
+}));
View
@@ -0,0 +1,32 @@
+// numeral.js locale configuration
+// locale : simplified chinese (chs)
+// author : badplum : https://github.com/badplum
+
+(function (global, factory) {
+ if (typeof define === 'function' && define.amd) {
+ define(['../numeral'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ factory(require('../numeral'));
+ } else {
+ factory(global.numeral);
+ }
+}(this, function (numeral) {
+ numeral.register('locale', 'chs', {
+ delimiters: {
+ thousands: ',',
+ decimal: '.'
+ },
+ abbreviations: {
+ thousand: '',
+ million: '百万',
+ billion: '十亿',
+ trillion: ''
+ },
+ ordinal: function (number) {
+ return '.';
+ },
+ currency: {
+ symbol: '¥'
+ }
+ });
+}));
View
@@ -0,0 +1,32 @@
+// numeral.js locale configuration
+// locale : czech (cs)
+// author : Anatoli Papirovski : https://github.com/apapirovski
+
+(function (global, factory) {
+ if (typeof define === 'function' && define.amd) {
+ define(['../numeral'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ factory(require('../numeral'));
+ } else {
+ factory(global.numeral);
+ }
+}(this, function (numeral) {
+ numeral.register('locale', 'cs', {
+ delimiters: {
+ thousands: ' ',
+ decimal: ','
+ },
+ abbreviations: {
+ thousand: 'tis.',
+ million: 'mil.',
+ billion: 'b',
+ trillion: 't'
+ },
+ ordinal: function () {
+ return '.';
+ },
+ currency: {
+ symbol: ''
+ }
+ });
+}));
View
@@ -0,0 +1,32 @@
+// numeral.js locale configuration
+// locale : danish denmark (dk)
+// author : Michael Storgaard : https://github.com/mstorgaard
+
+(function (global, factory) {
+ if (typeof define === 'function' && define.amd) {
+ define(['../numeral'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ factory(require('../numeral'));
+ } else {
+ factory(global.numeral);
+ }
+}(this, function (numeral) {
+ numeral.register('locale', 'da-dk', {
+ delimiters: {
+ thousands: '.',
+ decimal: ','
+ },
+ abbreviations: {
+ thousand: 'k',
+ million: 'mio',
+ billion: 'mia',
+ trillion: 'b'
+ },
+ ordinal: function (number) {
+ return '.';
+ },
+ currency: {
+ symbol: 'DKK'
+ }
+ });
+}));
View
@@ -0,0 +1,32 @@
+// numeral.js locale configuration
+// locale : German in Switzerland (de-ch)
+// author : Michael Piefel : https://github.com/piefel (based on work from Marco Krage : https://github.com/sinky)
+
+(function (global, factory) {
+ if (typeof define === 'function' && define.amd) {
+ define(['../numeral'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ factory(require('../numeral'));
+ } else {
+ factory(global.numeral);
+ }
+}(this, function (numeral) {
+ numeral.register('locale', 'de-ch', {
+ delimiters: {
+ thousands: ' ',
+ decimal: ','
+ },
+ abbreviations: {
+ thousand: 'k',
+ million: 'm',
+ billion: 'b',
+ trillion: 't'
+ },
+ ordinal: function (number) {
+ return '.';
+ },
+ currency: {
+ symbol: 'CHF'
+ }
+ });
+}));
View
@@ -0,0 +1,32 @@
+// numeral.js locale configuration
+// locale : German (de) – generally useful in Germany, Austria, Luxembourg, Belgium
+// author : Marco Krage : https://github.com/sinky
+
+(function (global, factory) {
+ if (typeof define === 'function' && define.amd) {
+ define(['../numeral'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ factory(require('../numeral'));
+ } else {
+ factory(global.numeral);
+ }
+}(this, function (numeral) {
+ numeral.register('locale', 'de', {
+ delimiters: {
+ thousands: ' ',
+ decimal: ','
+ },
+ abbreviations: {
+ thousand: 'k',
+ million: 'm',
+ billion: 'b',
+ trillion: 't'
+ },
+ ordinal: function (number) {
+ return '.';
+ },
+ currency: {
+ symbol: ''
+ }
+ });
+}));
View
@@ -0,0 +1,36 @@
+// numeral.js locale configuration
+// locale : English Australia
+// author : Don Vince : https://github.com/donvince/
+
+(function (global, factory) {
+ if (typeof define === 'function' && define.amd) {
+ define(['../numeral'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ factory(require('../numeral'));
+ } else {
+ factory(global.numeral);
+ }
+}(this, function (numeral) {
+ numeral.register('locale', 'en-au', {
+ delimiters: {
+ thousands: ',',
+ decimal: '.'
+ },
+ abbreviations: {
+ thousand: 'k',
+ million: 'm',
+ billion: 'b',
+ trillion: 't'
+ },
+ ordinal: function (number) {
+ var b = number % 10;
+ return (~~ (number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ },
+ currency: {
+ symbol: '$'
+ }
+ });
+}));
View
@@ -0,0 +1,36 @@
+// numeral.js locale configuration
+// locale : english united kingdom (uk)
+// author : Dan Ristic : https://github.com/dristic
+
+(function (global, factory) {
+ if (typeof define === 'function' && define.amd) {
+ define(['../numeral'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ factory(require('../numeral'));
+ } else {
+ factory(global.numeral);
+ }
+}(this, function (numeral) {
+ numeral.register('locale', 'en-gb', {
+ delimiters: {
+ thousands: ',',
+ decimal: '.'
+ },
+ abbreviations: {
+ thousand: 'k',
+ million: 'm',
+ billion: 'b',
+ trillion: 't'
+ },
+ ordinal: function (number) {
+ var b = number % 10;
+ return (~~ (number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ },
+ currency: {
+ symbol: '£'
+ }
+ });
+}));
View
@@ -0,0 +1,36 @@
+// numeral.js locale configuration
+// locale : english south africa (uk)
+// author : Etienne Boshoff : etienne@zailab.com
+
+(function (global, factory) {
+ if (typeof define === 'function' && define.amd) {
+ define(['../numeral'], factory);
+ } else if (typeof module === 'object' && module.exports) {
+ factory(require('../numeral'));
+ } else {
+ factory(global.numeral);
+ }
+}(this, function (numeral) {
+ numeral.register('locale', 'en-za', {
+ delimiters: {
+ thousands: ' ',
+ decimal: ','
+ },
+ abbreviations: {
+ thousand: 'k',
+ million: 'm',
+ billion: 'b',
+ trillion: 't'
+ },
+ ordinal: function (number) {
+ var b = number % 10;
+ return (~~ (number % 100 / 10) === 1) ? 'th' :
+ (b === 1) ? 'st' :
+ (b === 2) ? 'nd' :
+ (b === 3) ? 'rd' : 'th';
+ },
+ currency: {
+ symbol: 'R'
+ }
+ });
+}));
Oops, something went wrong.

0 comments on commit 0e500ee

Please sign in to comment.