mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
provide tr as store to avoid using {#key ...}
This commit is contained in:
parent
b97b8462d9
commit
167551839d
1 changed files with 4 additions and 0 deletions
|
|
@ -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<GetMirrorsResponse_Pair[]>([]);
|
|||
export const currentLang = writable("");
|
||||
export const initialLang = writable("");
|
||||
export const versionsStore = writable<GetVersionsResponse | undefined>(undefined);
|
||||
|
||||
export const tr = writable(_tr);
|
||||
currentLang.subscribe(() => tr.set(_tr));
|
||||
|
|
|
|||
Loading…
Reference in a new issue