1 | // numeral.js locale configuration
|
2 | // locale : Bulgarian
|
3 | // author : Don Vince : https://github.com/donvince/
|
4 |
|
5 | (function (global, factory) {
|
6 | if (typeof define === 'function' && define.amd) {
|
7 | define(['../numeral'], factory);
|
8 | } else if (typeof module === 'object' && module.exports) {
|
9 | factory(require('../numeral'));
|
10 | } else {
|
11 | factory(global.numeral);
|
12 | }
|
13 | }(this, function (numeral) {
|
14 | numeral.register('locale', 'bg', {
|
15 | delimiters: {
|
16 | thousands: ' ',
|
17 | decimal: ','
|
18 | },
|
19 | abbreviations: { // I found these here http://www.unicode.org/cldr/charts/28/verify/numbers/bg.html
|
20 | thousand: 'хил',
|
21 | million: 'млн',
|
22 | billion: 'млрд',
|
23 | trillion: 'трлн'
|
24 | },
|
25 | ordinal: function (number) {
|
26 | // google translate suggests:
|
27 | // 1st=1-ви; 2nd=2-ри; 7th=7-ми;
|
28 | // 8th=8-ми and many others end with -ти
|
29 | // for example 3rd=3-ти
|
30 | // However since I've seen suggestions that in
|
31 | // Bulgarian the ordinal can be taken in
|
32 | // different forms (masculine, feminine, neuter)
|
33 | // I've opted to wimp out on commiting that to code
|
34 | return '';
|
35 | },
|
36 | currency: {
|
37 | symbol: 'лв'
|
38 | }
|
39 | });
|
40 | }));
|