Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Translation progress #31
Browse files Browse the repository at this point in the history
  • Loading branch information
Tolfx committed Jan 5, 2022
1 parent 47cb445 commit d9eda61
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 1 deletion.
125 changes: 125 additions & 0 deletions src/Interfaces/Lang/AllLang.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
export interface IAllLanguages
{
ab: any;
aa: any;
af: any;
ak: any;
sq: any;
am: any;
ar: any;
an: any;
hy: any;
as: any;
av: any;
ae: any;
ay: any;
az: any;
bm: any;
ba: any;
eu: any;
be: any;
bn: any;
bh: any;
bi: any;
bs: any;
br: any;
bg: any;
my: any;
ca: any;
ch: any;
ce: any;
ny: any;
zh: any;
cv: any;
kw: any;
co: any;
cr: any;
hr: any;
cs: any;
da: any;
dv: any;
nl: any;
en: any;
eo: any;
et: any;
ee: any;
fo: any;
fj: any;
fi: any;
fr: any;
ff: any;
gl: any;
ka: any;
de: any;
el: any;
gn: any;
gu: any;
ht: any;
ha: any;
he: any;
hz: any;
hi: any;
ho: any;
hu: any;
ia: any;
id: any;
ie: any;
ga: any;
ig: any;
ik: any;
io: any;
is: any;
it: any;
iu: any;
ja: any;
jv: any;
kl: any;
kn: any;
kr: any;
ks: any;
kk: any;
km: any;
ki: any;
rw: any;
ky: any;
kv: any;
kg: any;
ko: any;
ku: any;
kj: any;
la: any;
lb: any;
lg: any;
li: any;
ln: any;
lo: any;
lt: any;
lu: any;
lv: any;
gv: any;
mk: any;
mg: any;
ms: any;
ml: any;
mt: any;
mi: any;
mr: any;
mh: any;
mn: any;
na: any;
nv: any;
nb: any;
nd: any;
ne: any;
ng: any;
nn: any;
no: any;
ii: any;
nr: any;
oc: any;
oj: any;
cu: any;
om: any;
or: any;
os: any;
}
4 changes: 4 additions & 0 deletions src/Interfaces/Lang/GetText.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface IGetText
{
txt_Uid_Description: string;
}
1 change: 0 additions & 1 deletion src/Texts/General/Uid.ts

This file was deleted.

11 changes: 11 additions & 0 deletions src/Texts/GetText.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { IAllLanguages } from "../Interfaces/Lang/AllLang";
import { IGetText } from "../Interfaces/Lang/GetText";

export default (lang: keyof IAllLanguages = "en"): IGetText =>
{
// Make a translation, depending on the lang later
// for now lets set it as default = en

const texts = require(`./${lang}/Lang_${lang}.js`).default;
return texts as IGetText;
};
3 changes: 3 additions & 0 deletions src/Texts/en/Lang_en.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
txt_Uid_Description: "Unique ID for object, generated by the system.",
};

0 comments on commit d9eda61

Please sign in to comment.