Commit 4718864e authored by Originate's avatar Originate
Browse files

Polish integrate menu

parent 933d31bd
......@@ -8,10 +8,11 @@ import fr from 'react-intl/locale-data/fr';
import it from 'react-intl/locale-data/it';
import ko from 'react-intl/locale-data/ko';
import zh from 'react-intl/locale-data/zh';
import pl from 'react-intl/locale-data/pl';
import { DEFAULT_LANGUAGE } from 'app/client_config';
import tt from 'counterpart';
addLocaleData([...en, ...es, ...ru, ...fr, ...it, ...ko, ...zh]);
addLocaleData([...en, ...es, ...ru, ...fr, ...it, ...ko, ...zh, ...pl]);
tt.registerTranslations('en', require('counterpart/locales/en'));
tt.registerTranslations('en', require('app/locales/en.json'));
......@@ -34,6 +35,9 @@ tt.registerTranslations('ko', require('app/locales/ko.json'));
tt.registerTranslations('zh', require('app/locales/counterpart/zh'));
tt.registerTranslations('zh', require('app/locales/zh.json'));
tt.registerTranslations('pl', require('app/locales/counterpart/pl'));
tt.registerTranslations('pl', require('app/locales/pl.json'));
if (process.env.NODE_ENV === 'production') {
tt.setFallbackLocale('en');
}
......
......@@ -201,6 +201,7 @@ class Settings extends React.Component {
<option value="fr">French</option>
<option value="it">Italian</option>
<option value="ko">Korean</option>
<option value="pl">Polish</option>
<option value="zh">Chinese 简体中文</option>
</select>
</label>
......
// 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: '%b %e',
},
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',
},
},
},
};
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