Import and use Italian translation
parent
3405e793ea
commit
746a8f8347
|
|
@ -35,6 +35,7 @@ import messagesChinese from './translations/cn';
|
||||||
import messagesSpanish from './translations/es';
|
import messagesSpanish from './translations/es';
|
||||||
import messagesCroatian from './translations/hr';
|
import messagesCroatian from './translations/hr';
|
||||||
import messagesCzech from './translations/cz';
|
import messagesCzech from './translations/cz';
|
||||||
|
import messagesItalian from './translations/it';
|
||||||
|
|
||||||
import './index.css';
|
import './index.css';
|
||||||
|
|
||||||
|
|
@ -57,7 +58,8 @@ const messages =
|
||||||
'zh' : messagesChinese,
|
'zh' : messagesChinese,
|
||||||
'es' : messagesSpanish,
|
'es' : messagesSpanish,
|
||||||
'hr' : messagesCroatian,
|
'hr' : messagesCroatian,
|
||||||
'cz' : messagesCzech
|
'cz' : messagesCzech,
|
||||||
|
'it' : messagesItalian
|
||||||
};
|
};
|
||||||
|
|
||||||
const locale = navigator.language.split(/[-_]/)[0]; // language without region code
|
const locale = navigator.language.split(/[-_]/)[0]; // language without region code
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue