This commit is contained in:
2020-11-28 19:35:11 +01:00
parent 23d900b0ff
commit 4ba1f59341
36 changed files with 1460 additions and 959 deletions

12
src/locales/en-US.ts Normal file
View File

@@ -0,0 +1,12 @@
import axios from "axios";
import {Axios} from "../../config";
export default async function () {
let informations = {}
const {data: translations} = await axios.get(Axios.baseURL + 'translations')
translations.map((item: any) => {
const { code, en } = item
informations = { ...informations, [code]: en }
})
return informations
}

12
src/locales/fr-FR.ts Normal file
View File

@@ -0,0 +1,12 @@
import axios from "axios";
import {Axios} from "../../config";
export default async function () {
let informations = {}
const {data: translations} = await axios.get(Axios.baseURL + 'translations')
translations.map((item: any) => {
const { code, fr } = item
informations = { ...informations, [code]: fr }
})
return informations
}