forked from MapComplete/MapComplete
Half complete i18n
This commit is contained in:
parent
7c1c9bc80a
commit
232664ee14
10 changed files with 100 additions and 24 deletions
16
UI/i18n/Translation.ts
Normal file
16
UI/i18n/Translation.ts
Normal 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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue