chore: update documentation, fix a few issues to make a new development setup easier, fix #1343

This commit is contained in:
Pieter Vander Vennet 2023-03-09 17:11:44 +01:00
parent c11bcb1817
commit 2f56f4d9fd
8 changed files with 25 additions and 24 deletions

View file

@ -1,13 +1,13 @@
import { FixedUiElement } from "../Base/FixedUiElement"
import { Translation, TypedTranslation } from "./Translation"
import BaseUIElement from "../BaseUIElement"
import known_languages from "../../assets/generated/used_languages.json"
import CompiledTranslations from "../../assets/generated/CompiledTranslations"
import LanguageUtils from "../../Utils/LanguageUtils"
export default class Translations {
static readonly t: typeof CompiledTranslations.t & Readonly<typeof CompiledTranslations.t> =
CompiledTranslations.t
private static knownLanguages = new Set(known_languages.languages)
private static knownLanguages = LanguageUtils.usedLanguages
constructor() {
throw "Translations is static. If you want to intitialize a new translation, use the singular form"
}