summaryrefslogtreecommitdiffstats
path: root/webapp/i18n/i18n.jsx
diff options
context:
space:
mode:
authorPierre-Julien Grizel <pjgrizel@numericube.com>2016-03-24 20:17:46 +0100
committerPierre-Julien Grizel <pjgrizel@numericube.com>2016-03-24 20:17:46 +0100
commitf9e92812d3168db44bdad19bceeb165742610e31 (patch)
treed9615256e548bc2c0d36444dd18bfee97d265474 /webapp/i18n/i18n.jsx
parentf82d150f8ca89c5f1b9e426357912241dee2fc7d (diff)
downloadchat-f9e92812d3168db44bdad19bceeb165742610e31.tar.gz
chat-f9e92812d3168db44bdad19bceeb165742610e31.tar.bz2
chat-f9e92812d3168db44bdad19bceeb165742610e31.zip
Added FR translation / thanks to @jblobel and @tbolon for their help
Diffstat (limited to 'webapp/i18n/i18n.jsx')
-rw-r--r--webapp/i18n/i18n.jsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/webapp/i18n/i18n.jsx b/webapp/i18n/i18n.jsx
index 6fed6b831..f153b54f3 100644
--- a/webapp/i18n/i18n.jsx
+++ b/webapp/i18n/i18n.jsx
@@ -2,11 +2,13 @@
// See License.txt for license information.
const es = require('!!file?name=i18n/[name].[ext]!./es.json');
+const fr = require('!!file?name=i18n/[name].[ext]!./fr.json');
const pt = require('!!file?name=i18n/[name].[ext]!./pt.json');
import {addLocaleData} from 'react-intl';
import enLocaleData from 'react-intl/locale-data/en';
import esLocaleData from 'react-intl/locale-data/es';
+import frLocaleData from 'react-intl/locale-data/fr';
import ptLocaleData from 'react-intl/locale-data/pt';
const languages = {
@@ -20,6 +22,11 @@ const languages = {
name: 'Español (Beta)',
url: es
},
+ fr: {
+ value: 'fr',
+ name: 'Français (Beta)',
+ url: fr
+ },
pt: {
value: 'pt',
name: 'Portugues (Beta)',
@@ -40,11 +47,13 @@ export function safariFix(callback) {
'intl',
'intl/locale-data/jsonp/en.js',
'intl/locale-data/jsonp/es.js',
+ 'intl/locale-data/jsonp/fr.js',
'intl/locale-data/jsonp/pt.js'
], (require) => {
require('intl');
require('intl/locale-data/jsonp/en.js');
require('intl/locale-data/jsonp/es.js');
+ require('intl/locale-data/jsonp/fr.js');
require('intl/locale-data/jsonp/pt.js');
callback();
});
@@ -53,5 +62,6 @@ export function safariFix(callback) {
export function doAddLocaleData() {
addLocaleData(enLocaleData);
addLocaleData(esLocaleData);
+ addLocaleData(frLocaleData);
addLocaleData(ptLocaleData);
}