Add translation buttons

This commit is contained in:
Pieter Vander Vennet 2022-04-01 12:51:55 +02:00
parent 592bc4ae0b
commit 2c7fb556dc
31 changed files with 442 additions and 150 deletions

View file

@ -7,7 +7,8 @@ import {QueryParameters} from "../../Logic/Web/QueryParameters";
export default class Locale {
public static language: UIEventSource<string> = Locale.setup();
public static showLinkToWeblate: UIEventSource<boolean> = new UIEventSource<boolean>(false);
private static setup() {
const source = LocalStorageSource.Get('language', "en");
if (!Utils.runningFromConsole) {