Added FR translation / thanks to @jblobel and @tbolon for their help
Этот коммит содержится в:
3674
i18n/fr.json
Обычный файл
3674
i18n/fr.json
Обычный файл
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
1377
webapp/i18n/fr.json
Обычный файл
1377
webapp/i18n/fr.json
Обычный файл
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
@@ -2,11 +2,13 @@
|
|||||||
// See License.txt for license information.
|
// See License.txt for license information.
|
||||||
|
|
||||||
const es = require('!!file?name=i18n/[name].[ext]!./es.json');
|
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');
|
const pt = require('!!file?name=i18n/[name].[ext]!./pt.json');
|
||||||
|
|
||||||
import {addLocaleData} from 'react-intl';
|
import {addLocaleData} from 'react-intl';
|
||||||
import enLocaleData from 'react-intl/locale-data/en';
|
import enLocaleData from 'react-intl/locale-data/en';
|
||||||
import esLocaleData from 'react-intl/locale-data/es';
|
import esLocaleData from 'react-intl/locale-data/es';
|
||||||
|
import frLocaleData from 'react-intl/locale-data/fr';
|
||||||
import ptLocaleData from 'react-intl/locale-data/pt';
|
import ptLocaleData from 'react-intl/locale-data/pt';
|
||||||
|
|
||||||
const languages = {
|
const languages = {
|
||||||
@@ -20,6 +22,11 @@ const languages = {
|
|||||||
name: 'Español (Beta)',
|
name: 'Español (Beta)',
|
||||||
url: es
|
url: es
|
||||||
},
|
},
|
||||||
|
fr: {
|
||||||
|
value: 'fr',
|
||||||
|
name: 'Français (Beta)',
|
||||||
|
url: fr
|
||||||
|
},
|
||||||
pt: {
|
pt: {
|
||||||
value: 'pt',
|
value: 'pt',
|
||||||
name: 'Portugues (Beta)',
|
name: 'Portugues (Beta)',
|
||||||
@@ -40,11 +47,13 @@ export function safariFix(callback) {
|
|||||||
'intl',
|
'intl',
|
||||||
'intl/locale-data/jsonp/en.js',
|
'intl/locale-data/jsonp/en.js',
|
||||||
'intl/locale-data/jsonp/es.js',
|
'intl/locale-data/jsonp/es.js',
|
||||||
|
'intl/locale-data/jsonp/fr.js',
|
||||||
'intl/locale-data/jsonp/pt.js'
|
'intl/locale-data/jsonp/pt.js'
|
||||||
], (require) => {
|
], (require) => {
|
||||||
require('intl');
|
require('intl');
|
||||||
require('intl/locale-data/jsonp/en.js');
|
require('intl/locale-data/jsonp/en.js');
|
||||||
require('intl/locale-data/jsonp/es.js');
|
require('intl/locale-data/jsonp/es.js');
|
||||||
|
require('intl/locale-data/jsonp/fr.js');
|
||||||
require('intl/locale-data/jsonp/pt.js');
|
require('intl/locale-data/jsonp/pt.js');
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
@@ -53,5 +62,6 @@ export function safariFix(callback) {
|
|||||||
export function doAddLocaleData() {
|
export function doAddLocaleData() {
|
||||||
addLocaleData(enLocaleData);
|
addLocaleData(enLocaleData);
|
||||||
addLocaleData(esLocaleData);
|
addLocaleData(esLocaleData);
|
||||||
|
addLocaleData(frLocaleData);
|
||||||
addLocaleData(ptLocaleData);
|
addLocaleData(ptLocaleData);
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user