Unverified Commit 6795e5a7 authored by inoue's avatar inoue Committed by GitHub
Browse files

add Japanese language

parent 5dc8a3f7
......@@ -104,6 +104,7 @@ if (!window.Intl) {
require('intl/locale-data/jsonp/ru.js');
require('intl/locale-data/jsonp/fr.js');
require('intl/locale-data/jsonp/it.js');
require('intl/locale-data/jsonp/ja.js');
Iso.bootstrap(runApp);
}, "IntlBundle");
}
......
......@@ -6,10 +6,11 @@ import es from 'react-intl/locale-data/es';
import ru from 'react-intl/locale-data/ru';
import fr from 'react-intl/locale-data/fr';
import it from 'react-intl/locale-data/it';
import it from 'react-intl/locale-data/ja';
import {DEFAULT_LANGUAGE} from 'app/client_config';
import tt from 'counterpart';
addLocaleData([...en, ...es, ...ru, ...fr, ...it]);
addLocaleData([...en, ...es, ...ru, ...fr, ...it, ...ja]);
tt.registerTranslations('en', require('counterpart/locales/en'));
tt.registerTranslations('en', require('app/locales/en.json'));
......@@ -26,6 +27,9 @@ tt.registerTranslations('fr', require('app/locales/fr.json'));
tt.registerTranslations('it', require('app/locales/counterpart/it'));
tt.registerTranslations('it', require('app/locales/it.json'));
tt.registerTranslations('ja', require('app/locales/counterpart/ja'));
tt.registerTranslations('ja', require('app/locales/ja.json'));
if (process.env.NODE_ENV === 'production') {
tt.setFallbackLocale('en');
}
......
// The translations in this file are added by default.
'use strict';
module.exports = {
counterpart: {
names: require('date-names/en'),
pluralize: require('pluralizers/en'),
formats: {
date: {
'default': '%a, %e %b %Y',
long: '%A, %B %o, %Y',
short: '%e %b'
},
time: {
'default': '%H:%M',
long: '%H:%M:%S %z',
short: '%H:%M'
},
datetime: {
'default': '%a, %e %b %Y %H:%M',
long: '%A, %B %o, %Y %H:%M:%S %z',
short: '%e %b %H:%M'
}
}
}
};
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment