mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-01 18:03:35 +00:00
fix(android): preserve Swedish app name
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user