mapcomplete/UI/i18n/Translation.ts

17 lines
391 B
TypeScript
Raw Normal View History

2020-07-20 12:39:43 +02:00
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
}
}