mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Ignore lint error.
This commit is contained in:
parent
d1ac9fc9a6
commit
227eafd7b5
@ -41,12 +41,13 @@ export default class AppI18n {
|
|||||||
export type LocaleCode = 'en' | 'es' | 'fr' | 'de';
|
export type LocaleCode = 'en' | 'es' | 'fr' | 'de';
|
||||||
|
|
||||||
export const Locales = {
|
export const Locales = {
|
||||||
EN: new Locale('en', 'English', require('./../../compiled-lang/en.json')),
|
EN: new Locale('en', 'English', require('./../../compiled-lang/en.json')), // eslint-disable-line
|
||||||
ES: new Locale('es', 'Español', require('./../../compiled-lang/es.json')),
|
ES: new Locale('es', 'Español', require('./../../compiled-lang/es.json')), // eslint-disable-line
|
||||||
DE: new Locale('fr', 'Français', require('./../../compiled-lang/fr.json')),
|
DE: new Locale('fr', 'Français', require('./../../compiled-lang/fr.json')), // eslint-disable-line
|
||||||
FR: new Locale('de', 'Deutsch', require('./../../compiled-lang/de.json')),
|
FR: new Locale('de', 'Deutsch', require('./../../compiled-lang/de.json')), // eslint-disable-line
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export const localeFromStr = (code: string): Locale => {
|
export const localeFromStr = (code: string): Locale => {
|
||||||
const locales: Locale[] = Object.values(Locales);
|
const locales: Locale[] = Object.values(Locales);
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"target": "es5",
|
"target": "es6",
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user