Half complete i18n

This commit is contained in:
Pieter Fiers 2020-07-20 12:39:43 +02:00
parent 7c1c9bc80a
commit 232664ee14
10 changed files with 100 additions and 24 deletions

16
UI/i18n/Translation.ts Normal file
View file

@ -0,0 +1,16 @@
import { UIElement } from "../UIElement"
import Locale from "./Locale"
export default class Translation extends UIElement{
protected InnerRender(): string {
return this.translations[Locale.language.data]
}
public readonly translations: object
constructor(translations: object) {
super(Locale.language)
this.translations = translations
}
}