From 167551839d1606216a06c8684cc72bff6067e679 Mon Sep 17 00:00:00 2001 From: llama Date: Sat, 18 Oct 2025 10:02:28 +0800 Subject: [PATCH] provide tr as store to avoid using {#key ...} --- qt/launcher-gui/src/routes/stores.ts | 4 ++++ 1 file changed, 4 insertions(+) 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));