Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

Commit

Permalink
add index for languages
Browse files Browse the repository at this point in the history
  • Loading branch information
wodka committed Jun 9, 2020
1 parent c023187 commit 7fab683
Show file tree
Hide file tree
Showing 8 changed files with 178 additions and 10 deletions.
28 changes: 27 additions & 1 deletion locales/cn/index.ts
Original file line number Diff line number Diff line change
@@ -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,
}
5 changes: 4 additions & 1 deletion locales/en/language.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@
"en": "English",
"es": "Español",
"fr": "Français",
"it": "Italiano"
"it": "Italiano",
"pl": "Polski",
"pt": "Português",
"ru": "русский язык"
}
28 changes: 27 additions & 1 deletion locales/es/index.ts
Original file line number Diff line number Diff line change
@@ -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,
}
28 changes: 27 additions & 1 deletion locales/fr/index.ts
Original file line number Diff line number Diff line change
@@ -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,
}
18 changes: 12 additions & 6 deletions locales/index.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -12,4 +15,7 @@ export const resources = {
es,
fr,
it,
pl,
pt,
ru,
}
27 changes: 27 additions & 0 deletions locales/pl/index.ts
Original file line number Diff line number Diff line change
@@ -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,
}
27 changes: 27 additions & 0 deletions locales/pt/index.ts
Original file line number Diff line number Diff line change
@@ -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,
}
27 changes: 27 additions & 0 deletions locales/ru/index.ts
Original file line number Diff line number Diff line change
@@ -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,
}

0 comments on commit 7fab683

Please sign in to comment.