@quantlab/handsontable
Version:
Spreadsheet-like data grid editor that provides copy/paste functionality compatible with Excel/Google Docs
53 lines (50 loc) • 1.49 kB
JavaScript
/*!
* numbro.js language configuration
* language : Russian
* locale : Russsia
* author : Anatoli Papirovski : https://github.com/apapirovski
*/
(function () {
'use strict';
var language = {
langLocaleCode: 'ru-RU',
cultureCode: 'ru-RU',
delimiters: {
thousands: ' ',
decimal: ','
},
abbreviations: {
thousand: 'тыс.',
million: 'млн',
billion: 'b',
trillion: 't'
},
ordinal: function () {
// not ideal, but since in Russian it can taken on
// different forms (masculine, feminine, neuter)
// this is all we can do
return '.';
},
currency: {
symbol: 'руб.',
position: 'postfix'
},
defaults: {
currencyFormat: ',4 a'
},
formats: {
fourDigits: '4 a',
fullWithTwoDecimals: ',0.00 $',
fullWithTwoDecimalsNoCurrency: ',0.00',
fullWithNoDecimals: ',0 $'
}
};
// CommonJS
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && window.numbro && window.numbro.culture) {
window.numbro.culture(language.cultureCode, language);
}
}.call(typeof window === 'undefined' ? this : window));