Better validated text fields with translations and human-friendly texts: first draft
This commit is contained in:
parent
695a0867c7
commit
9ab4fbd6f5
7 changed files with 581 additions and 528 deletions
|
@ -1,11 +1,12 @@
|
|||
import {FixedUiElement} from "../Base/FixedUiElement";
|
||||
import AllTranslationAssets from "../../AllTranslationAssets";
|
||||
import {Translation} from "./Translation";
|
||||
import BaseUIElement from "../BaseUIElement";
|
||||
import * as known_languages from "../../assets/generated/used_languages.json"
|
||||
import CompiledTranslations from "../../assets/generated/CompiledTranslations";
|
||||
|
||||
export default class Translations {
|
||||
|
||||
static t = AllTranslationAssets.t;
|
||||
static t = CompiledTranslations.t;
|
||||
private static knownLanguages = new Set(known_languages.languages)
|
||||
constructor() {
|
||||
throw "Translations is static. If you want to intitialize a new translation, use the singular form"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue