uk-ua.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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. (function (global, factory) {
  5. if (typeof define === 'function' && define.amd) {
  6. define(['../numeral'], factory);
  7. } else if (typeof module === 'object' && module.exports) {
  8. factory(require('../numeral'));
  9. } else {
  10. factory(global.numeral);
  11. }
  12. }(this, function (numeral) {
  13. numeral.register('locale', 'uk-ua', {
  14. delimiters: {
  15. thousands: ' ',
  16. decimal: ','
  17. },
  18. abbreviations: {
  19. thousand: 'тис.',
  20. million: 'млн',
  21. billion: 'млрд',
  22. trillion: 'блн'
  23. },
  24. ordinal: function () {
  25. // not ideal, but since in Ukrainian it can taken on
  26. // different forms (masculine, feminine, neuter)
  27. // this is all we can do
  28. return '';
  29. },
  30. currency: {
  31. symbol: '\u20B4'
  32. }
  33. });
  34. }));