Add new languages to resources (#402)
This commit is contained in:
@@ -6,14 +6,15 @@
|
|||||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import en from '@/i18n/locale/en.json';
|
|
||||||
|
|
||||||
import ar from '@/i18n/locale/ar.json';
|
import ar from '@/i18n/locale/ar.json';
|
||||||
import de from '@/i18n/locale/de.json';
|
import de from '@/i18n/locale/de.json';
|
||||||
import es from '@/i18n/locale/es.json';
|
import es from '@/i18n/locale/es.json';
|
||||||
|
import en from '@/i18n/locale/en.json'; // default language
|
||||||
import fr from '@/i18n/locale/fr.json';
|
import fr from '@/i18n/locale/fr.json';
|
||||||
import id from '@/i18n/locale/id.json';
|
import id from '@/i18n/locale/id.json';
|
||||||
|
import it from '@/i18n/locale/it.json';
|
||||||
import ja from '@/i18n/locale/ja.json';
|
import ja from '@/i18n/locale/ja.json';
|
||||||
|
import ko from '@/i18n/locale/ko.json';
|
||||||
import pt from '@/i18n/locale/pt.json';
|
import pt from '@/i18n/locale/pt.json';
|
||||||
import uk from '@/i18n/locale/uk.json';
|
import uk from '@/i18n/locale/uk.json';
|
||||||
import zh_Hans from '@/i18n/locale/zh_Hans.json';
|
import zh_Hans from '@/i18n/locale/zh_Hans.json';
|
||||||
@@ -28,14 +29,15 @@ const translationHelper = <T>(lng: T) => ({
|
|||||||
* In case there is no language code for the key in {@link ISOLanguages}, the corresponding language has to be added
|
* In case there is no language code for the key in {@link ISOLanguages}, the corresponding language has to be added
|
||||||
*/
|
*/
|
||||||
const resources = {
|
const resources = {
|
||||||
en: translationHelper(en),
|
|
||||||
|
|
||||||
ar: translationHelper(ar),
|
ar: translationHelper(ar),
|
||||||
de: translationHelper(de),
|
de: translationHelper(de),
|
||||||
es: translationHelper(es),
|
es: translationHelper(es),
|
||||||
|
en: translationHelper(en), // default language
|
||||||
fr: translationHelper(fr),
|
fr: translationHelper(fr),
|
||||||
id: translationHelper(id),
|
id: translationHelper(id),
|
||||||
|
it: translationHelper(it),
|
||||||
ja: translationHelper(ja),
|
ja: translationHelper(ja),
|
||||||
|
ko: translationHelper(ko),
|
||||||
pt: translationHelper(pt),
|
pt: translationHelper(pt),
|
||||||
uk: translationHelper(uk),
|
uk: translationHelper(uk),
|
||||||
'zh-Hans': translationHelper(zh_Hans),
|
'zh-Hans': translationHelper(zh_Hans),
|
||||||
|
|||||||
Reference in New Issue
Block a user