feat: add Russian localization and independent STT languages
CI / Typecheck, tests, lint (push) Canceled after 0s
CI / Standalone (mac-arm64) (push) Canceled after 0s
CI / Standalone (linux-x64) (push) Canceled after 0s
CI / Standalone (windows-x64) (push) Canceled after 0s

This commit is contained in:
2026-10-25 17:18:44 +03:00
parent b277ee3e0f
commit a50ca4b867
93 changed files with 3261 additions and 904 deletions
+2 -1
View File
@@ -95,7 +95,7 @@ async function serverLaunch(platform: string) {
const child = Object.assign(new EventEmitter(), { stdout: new EventEmitter(), stderr: new EventEmitter() });
const context = {
require: (id: string) => id === "electron" ? {
app: { setName() {}, requestSingleInstanceLock: () => false, quit() {}, getPath: () => "/fixture/user-data" },
app: { setName() {}, requestSingleInstanceLock: () => false, quit() {}, getPreferredSystemLanguages: () => ["ru-RU"], getPath: () => "/fixture/user-data" },
} : id === "node:child_process" ? {
spawn(binary: string, args: string[], options: typeof launch.options) {
launch = JSON.parse(JSON.stringify({ binary, args, options }));
@@ -128,6 +128,7 @@ describe("backend-only preload wiring and packaging", () => {
assert.equal(launch.options.env.PORT, "54321");
assert.equal(launch.options.env.HOSTNAME, "127.0.0.1");
assert.equal(launch.options.env.FIXTURE, "kept");
assert.equal(launch.options.env.LH_SYSTEM_LANGUAGE, "ru-RU");
assert.deepEqual(launch.options.stdio, ["ignore", "pipe", "pipe", "ipc"]);
});
}