UNPKG

1.07 kBJavaScriptView Raw
1// numeral.js locale configuration
2// locale : Ukrainian for the Ukraine (uk-ua)
3// author : Michael Piefel : https://github.com/piefel (with help from Tetyana Kuzmenko)
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', 'uk-ua', {
15 delimiters: {
16 thousands: ' ',
17 decimal: ','
18 },
19 abbreviations: {
20 thousand: 'тис.',
21 million: 'млн',
22 billion: 'млрд',
23 trillion: 'блн'
24 },
25 ordinal: function () {
26 // not ideal, but since in Ukrainian it can taken on
27 // different forms (masculine, feminine, neuter)
28 // this is all we can do
29 return '';
30 },
31 currency: {
32 symbol: '\u20B4'
33 }
34 });
35}));