Import and use Italian translation
This commit is contained in:
+3
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user