Import and use Italian translation

master
Mészáros Mihály 2020-03-31 21:09:58 +02:00
parent 3405e793ea
commit 746a8f8347
1 changed files with 3 additions and 1 deletions

View File

@ -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