fix(android): preserve Swedish app name

This commit is contained in:
Vincent Koc
2026-07-01 01:27:54 -07:00
committed by Vincent Koc
parent 5e786ac27a
commit 03d3f49c3d
2 changed files with 7 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<resources>
<string name="app_name">OpenClaw Node</string>
<string name="app_name">OpenClaw-nod</string>
<string name="gateway_connection">Gatewayanslutning</string>
<string name="connect_gateway">Anslut gateway</string>
<string name="disconnect">Koppla från</string>

View File

@@ -1,3 +1,4 @@
import { readFile } from "node:fs/promises";
import { describe, expect, it } from "vitest";
import { checkAndroidAppI18n } from "../../scripts/android-app-i18n.ts";
@@ -5,4 +6,9 @@ describe("Android app i18n resources", () => {
it("keeps every native locale resource key aligned with English", async () => {
await expect(checkAndroidAppI18n()).resolves.toBeUndefined();
});
it("preserves the existing Swedish app name", async () => {
const strings = await readFile("apps/android/app/src/main/res/values-sv/strings.xml", "utf8");
expect(strings).toContain('<string name="app_name">OpenClaw-nod</string>');
});
});