summaryrefslogtreecommitdiffstats
path: root/webapp/i18n/i18n.jsx
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-07-19 08:34:22 -0400
committerChristopher Speller <crspeller@gmail.com>2016-07-19 08:34:22 -0400
commit2b0fcd378ce96277f393b89cac1a98d70e1c480f (patch)
treee4738ef559a196b7b039ae9e52e46fd279e9311f /webapp/i18n/i18n.jsx
parent40c47dcf0b85658198e369b7daf33302d26a3384 (diff)
downloadchat-2b0fcd378ce96277f393b89cac1a98d70e1c480f.tar.gz
chat-2b0fcd378ce96277f393b89cac1a98d70e1c480f.tar.bz2
chat-2b0fcd378ce96277f393b89cac1a98d70e1c480f.zip
daily translations 20160718 (#3621)
Diffstat (limited to 'webapp/i18n/i18n.jsx')
-rw-r--r--webapp/i18n/i18n.jsx12
1 files changed, 11 insertions, 1 deletions
diff --git a/webapp/i18n/i18n.jsx b/webapp/i18n/i18n.jsx
index 1a6efd000..1b2511aed 100644
--- a/webapp/i18n/i18n.jsx
+++ b/webapp/i18n/i18n.jsx
@@ -6,6 +6,7 @@ const es = require('!!file?name=i18n/[name].[hash].[ext]!./es.json');
const fr = require('!!file?name=i18n/[name].[hash].[ext]!./fr.json');
const ja = require('!!file?name=i18n/[name].[hash].[ext]!./ja.json');
const pt_BR = require('!!file?name=i18n/[name].[hash].[ext]!./pt-BR.json'); //eslint-disable-line camelcase
+const zh_TW = require('!!file?name=i18n/[name].[hash].[ext]!./zh_TW.json'); //eslint-disable-line camelcase
import {addLocaleData} from 'react-intl';
import deLocaleData from 'react-intl/locale-data/de';
@@ -14,6 +15,7 @@ import esLocaleData from 'react-intl/locale-data/es';
import frLocaleData from 'react-intl/locale-data/fr';
import jaLocaleData from 'react-intl/locale-data/ja';
import ptLocaleData from 'react-intl/locale-data/pt';
+import zhLocaleData from 'react-intl/locale-data/zh';
// should match the values in model/config.go
const languages = {
@@ -46,6 +48,11 @@ const languages = {
value: 'pt-BR',
name: 'Portugues (Beta)',
url: pt_BR
+ },
+ 'zh-TW': {
+ value: 'zh-TW',
+ name: '中文 (繁體) (Beta)',
+ url: zh_TW
}
};
@@ -98,7 +105,8 @@ export function safariFix(callback) {
'intl/locale-data/jsonp/es.js',
'intl/locale-data/jsonp/fr.js',
'intl/locale-data/jsonp/ja.js',
- 'intl/locale-data/jsonp/pt.js'
+ 'intl/locale-data/jsonp/pt.js',
+ 'intl/locale-data/jsonp/zh.js'
], (require) => {
require('intl');
require('intl/locale-data/jsonp/de.js');
@@ -107,6 +115,7 @@ export function safariFix(callback) {
require('intl/locale-data/jsonp/fr.js');
require('intl/locale-data/jsonp/ja.js');
require('intl/locale-data/jsonp/pt.js');
+ require('intl/locale-data/jsonp/zh.js');
callback();
});
}
@@ -118,4 +127,5 @@ export function doAddLocaleData() {
addLocaleData(frLocaleData);
addLocaleData(jaLocaleData);
addLocaleData(ptLocaleData);
+ addLocaleData(zhLocaleData);
}