ru-RU.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*!
  2. * numbro.js language configuration
  3. * language : Russian
  4. * locale : Russsia
  5. * author : Anatoli Papirovski : https://github.com/apapirovski
  6. */
  7. (function () {
  8. 'use strict';
  9. var language = {
  10. langLocaleCode: 'ru-RU',
  11. cultureCode: 'ru-RU',
  12. delimiters: {
  13. thousands: ' ',
  14. decimal: ','
  15. },
  16. abbreviations: {
  17. thousand: 'тыс.',
  18. million: 'млн',
  19. billion: 'b',
  20. trillion: 't'
  21. },
  22. ordinal: function () {
  23. // not ideal, but since in Russian it can taken on
  24. // different forms (masculine, feminine, neuter)
  25. // this is all we can do
  26. return '.';
  27. },
  28. currency: {
  29. symbol: 'руб.',
  30. position: 'postfix'
  31. },
  32. defaults: {
  33. currencyFormat: ',4 a'
  34. },
  35. formats: {
  36. fourDigits: '4 a',
  37. fullWithTwoDecimals: ',0.00 $',
  38. fullWithTwoDecimalsNoCurrency: ',0.00',
  39. fullWithNoDecimals: ',0 $'
  40. }
  41. };
  42. // CommonJS
  43. if (typeof module !== 'undefined' && module.exports) {
  44. module.exports = language;
  45. }
  46. // Browser
  47. if (typeof window !== 'undefined' && window.numbro && window.numbro.culture) {
  48. window.numbro.culture(language.cultureCode, language);
  49. }
  50. }.call(typeof window === 'undefined' ? this : window));