diff --git a/qt/launcher-gui/src/routes/stores.ts b/qt/launcher-gui/src/routes/stores.ts index 864dfb31c..bb96b02bf 100644 --- a/qt/launcher-gui/src/routes/stores.ts +++ b/qt/launcher-gui/src/routes/stores.ts @@ -1,6 +1,7 @@ // Copyright: Ankitects Pty Ltd and contributors // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html +import * as _tr from "@generated/ftl-launcher"; import type { GetLangsResponse_Pair, GetMirrorsResponse_Pair, GetVersionsResponse } from "@generated/anki/launcher_pb"; import { writable } from "svelte/store"; @@ -10,3 +11,6 @@ export const mirrorsStore = writable([]); export const currentLang = writable(""); export const initialLang = writable(""); export const versionsStore = writable(undefined); + +export const tr = writable(_tr); +currentLang.subscribe(() => tr.set(_tr));