From 7fab683f0d1d7391524ea8c2130acf282443d9b5 Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Tue, 9 Jun 2020 18:00:47 +0200 Subject: [PATCH] add index for languages --- locales/cn/index.ts | 28 +++++++++++++++++++++++++++- locales/en/language.json | 5 ++++- locales/es/index.ts | 28 +++++++++++++++++++++++++++- locales/fr/index.ts | 28 +++++++++++++++++++++++++++- locales/index.ts | 18 ++++++++++++------ locales/pl/index.ts | 27 +++++++++++++++++++++++++++ locales/pt/index.ts | 27 +++++++++++++++++++++++++++ locales/ru/index.ts | 27 +++++++++++++++++++++++++++ 8 files changed, 178 insertions(+), 10 deletions(-) create mode 100644 locales/pl/index.ts create mode 100644 locales/pt/index.ts create mode 100644 locales/ru/index.ts diff --git a/locales/cn/index.ts b/locales/cn/index.ts index 4f059b98c..ebdf94696 100644 --- a/locales/cn/index.ts +++ b/locales/cn/index.ts @@ -1 +1,27 @@ -export const cn = {} +import admin from './admin.json' +import common from './common.json' +import form from './form.json' +import language from './language.json' +import login from './login.json' +import profile from './profile.json' +import register from './register.json' +import statistic from './statistic.json' +import submission from './submission.json' +import type from './type.json' +import user from './user.json' +import validation from './validation.json' + +export const cn = { + admin, + common, + form, + language, + login, + profile, + register, + statistic, + submission, + type, + user, + validation, +} diff --git a/locales/en/language.json b/locales/en/language.json index 5fb76d566..a2f304f76 100644 --- a/locales/en/language.json +++ b/locales/en/language.json @@ -4,5 +4,8 @@ "en": "English", "es": "Español", "fr": "Français", - "it": "Italiano" + "it": "Italiano", + "pl": "Polski", + "pt": "Português", + "ru": "русский язык" } diff --git a/locales/es/index.ts b/locales/es/index.ts index 7dfbabd22..3c549c6a2 100644 --- a/locales/es/index.ts +++ b/locales/es/index.ts @@ -1 +1,27 @@ -export const es = {} +import admin from './admin.json' +import common from './common.json' +import form from './form.json' +import language from './language.json' +import login from './login.json' +import profile from './profile.json' +import register from './register.json' +import statistic from './statistic.json' +import submission from './submission.json' +import type from './type.json' +import user from './user.json' +import validation from './validation.json' + +export const es = { + admin, + common, + form, + language, + login, + profile, + register, + statistic, + submission, + type, + user, + validation, +} diff --git a/locales/fr/index.ts b/locales/fr/index.ts index dbdcd6cae..6166a4501 100644 --- a/locales/fr/index.ts +++ b/locales/fr/index.ts @@ -1 +1,27 @@ -export const fr = {} +import admin from './admin.json' +import common from './common.json' +import form from './form.json' +import language from './language.json' +import login from './login.json' +import profile from './profile.json' +import register from './register.json' +import statistic from './statistic.json' +import submission from './submission.json' +import type from './type.json' +import user from './user.json' +import validation from './validation.json' + +export const fr = { + admin, + common, + form, + language, + login, + profile, + register, + statistic, + submission, + type, + user, + validation, +} diff --git a/locales/index.ts b/locales/index.ts index 5d375c984..ae0472cd5 100644 --- a/locales/index.ts +++ b/locales/index.ts @@ -1,9 +1,12 @@ -import {cn} from './cn' -import {de} from './de' -import {en} from './en' -import {es} from './es' -import {fr} from './fr' -import {it} from './it' +import { cn } from './cn' +import { de } from './de' +import { en } from './en' +import { es } from './es' +import { fr } from './fr' +import { it } from './it' +import { pl } from './pl' +import { pt } from './pt' +import { ru } from './ru' export const resources = { cn, @@ -12,4 +15,7 @@ export const resources = { es, fr, it, + pl, + pt, + ru, } diff --git a/locales/pl/index.ts b/locales/pl/index.ts new file mode 100644 index 000000000..05bb27a5d --- /dev/null +++ b/locales/pl/index.ts @@ -0,0 +1,27 @@ +import admin from './admin.json' +import common from './common.json' +import form from './form.json' +import language from './language.json' +import login from './login.json' +import profile from './profile.json' +import register from './register.json' +import statistic from './statistic.json' +import submission from './submission.json' +import type from './type.json' +import user from './user.json' +import validation from './validation.json' + +export const pl = { + admin, + common, + form, + language, + login, + profile, + register, + statistic, + submission, + type, + user, + validation, +} diff --git a/locales/pt/index.ts b/locales/pt/index.ts new file mode 100644 index 000000000..101a7e15f --- /dev/null +++ b/locales/pt/index.ts @@ -0,0 +1,27 @@ +import admin from './admin.json' +import common from './common.json' +import form from './form.json' +import language from './language.json' +import login from './login.json' +import profile from './profile.json' +import register from './register.json' +import statistic from './statistic.json' +import submission from './submission.json' +import type from './type.json' +import user from './user.json' +import validation from './validation.json' + +export const pt = { + admin, + common, + form, + language, + login, + profile, + register, + statistic, + submission, + type, + user, + validation, +} diff --git a/locales/ru/index.ts b/locales/ru/index.ts new file mode 100644 index 000000000..d2e72c8dd --- /dev/null +++ b/locales/ru/index.ts @@ -0,0 +1,27 @@ +import admin from './admin.json' +import common from './common.json' +import form from './form.json' +import language from './language.json' +import login from './login.json' +import profile from './profile.json' +import register from './register.json' +import statistic from './statistic.json' +import submission from './submission.json' +import type from './type.json' +import user from './user.json' +import validation from './validation.json' + +export const ru = { + admin, + common, + form, + language, + login, + profile, + register, + statistic, + submission, + type, + user, + validation, +}