Chore: reformat all files with prettier
This commit is contained in:
parent
5757ae5dea
commit
d008dcb54d
214 changed files with 8926 additions and 8196 deletions
|
@ -1,7 +1,7 @@
|
|||
import {UIEventSource} from "../../Logic/UIEventSource"
|
||||
import {LocalStorageSource} from "../../Logic/Web/LocalStorageSource"
|
||||
import {Utils} from "../../Utils"
|
||||
import {QueryParameters} from "../../Logic/Web/QueryParameters"
|
||||
import { UIEventSource } from "../../Logic/UIEventSource"
|
||||
import { LocalStorageSource } from "../../Logic/Web/LocalStorageSource"
|
||||
import { Utils } from "../../Utils"
|
||||
import { QueryParameters } from "../../Logic/Web/QueryParameters"
|
||||
|
||||
export default class Locale {
|
||||
public static showLinkToWeblate: UIEventSource<boolean> = new UIEventSource<boolean>(false)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import {FixedUiElement} from "../Base/FixedUiElement"
|
||||
import {Translation, TypedTranslation} from "./Translation"
|
||||
import { FixedUiElement } from "../Base/FixedUiElement"
|
||||
import { Translation, TypedTranslation } from "./Translation"
|
||||
import BaseUIElement from "../BaseUIElement"
|
||||
import CompiledTranslations from "../../assets/generated/CompiledTranslations"
|
||||
import LanguageUtils from "../../Utils/LanguageUtils"
|
||||
import {ClickableToggle} from "../Input/Toggle";
|
||||
import { ClickableToggle } from "../Input/Toggle"
|
||||
|
||||
export default class Translations {
|
||||
static readonly t: Readonly<typeof CompiledTranslations.t> = CompiledTranslations.t
|
||||
|
@ -30,7 +30,9 @@ export default class Translations {
|
|||
const v = JSON.stringify(s)
|
||||
if (v.length > 100) {
|
||||
const shortened = v.substring(0, 100) + "..."
|
||||
return new ClickableToggle(v, shortened).ToggleOnClick().SetClass("literal-code button")
|
||||
return new ClickableToggle(v, shortened)
|
||||
.ToggleOnClick()
|
||||
.SetClass("literal-code button")
|
||||
}
|
||||
return new FixedUiElement(v).SetClass("literal-code")
|
||||
}
|
||||
|
@ -73,7 +75,7 @@ export default class Translations {
|
|||
t = "" + t
|
||||
}
|
||||
if (typeof t === "string") {
|
||||
return new TypedTranslation<object>({"*": t}, context)
|
||||
return new TypedTranslation<object>({ "*": t }, context)
|
||||
}
|
||||
if (t["render"] !== undefined) {
|
||||
const msg =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue