numbr
Version:
A fast number formatting library, based on Numeral.js
34 lines (33 loc) • 862 B
JavaScript
/*!
* numeral.js language configuration
* language : Latvian (lv)
* author : Lauris Bukšis-Haberkorns : https://github.com/Lafriks
*/
(function () {
var language = {
delimiters: {
thousands: ' ',
decimal: ','
},
abbreviations: {
thousand: ' tūkst.',
million: ' milj.',
billion: ' mljrd.',
trillion: ' trilj.'
},
ordinal: function (number) {
return '.';
},
currency: {
symbol: '€'
}
};
// Node
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
this.numeral.language('lv', language);
}
}());