@quantlab/handsontable
Version:
Spreadsheet-like data grid editor that provides copy/paste functionality compatible with Excel/Google Docs
50 lines (47 loc) • 1.3 kB
JavaScript
/*!
* numbro.js language configuration
* language : Japanese
* locale: Japan
* author : teppeis : https://github.com/teppeis
*/
(function () {
'use strict';
var language = {
langLocaleCode: 'ja-JP',
cultureCode: 'ja-JP',
delimiters: {
thousands: ',',
decimal: '.'
},
abbreviations: {
thousand: '千',
million: '百万',
billion: '十億',
trillion: '兆'
},
ordinal: function () {
return '.';
},
currency: {
symbol: '¥',
position: 'prefix'
},
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));