feat: add Russian localization and independent STT languages
This commit is contained in:
@@ -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"]);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user