fix(pwa): restore English name and description in the PWA manifest (#20504)

This commit is contained in:
diegosouzapw
2026-11-19 06:09:20 -03:00
parent cc59ad70b2
commit 3643900d93
3 changed files with 20 additions and 2 deletions

View File

@@ -0,0 +1 @@
- fix(pwa): restore English name and description in the PWA manifest, which declares lang en (#20504)

View File

@@ -3,9 +3,10 @@ import { PWA_THEME_COLORS } from "@/shared/constants/pwaThemeColors";
export default function manifest(): MetadataRoute.Manifest {
return {
name: "OmniRoute AI 网关",
name: "OmniRoute AI Gateway",
short_name: "OmniRoute",
description: "OmniRoute 是一个面向多提供者 LLM 的 AI 网关。一个端点连接您所有的 AI 提供者。",
description:
"OmniRoute is an AI gateway for multi-provider LLMs. One endpoint for all your AI providers.",
start_url: "/dashboard",
scope: "/",
display: "standalone",

View File

@@ -0,0 +1,16 @@
import test from "node:test";
import assert from "node:assert/strict";
import manifest from "../../src/app/manifest.ts";
const CJK = /[㐀-鿿＀-￯]/;
test("#20504: manifest declared lang=en must not carry CJK name/description", () => {
const m = manifest();
assert.equal(m.lang, "en");
assert.ok(String(m.name).length > 0);
assert.ok(String(m.description).length > 0);
assert.doesNotMatch(String(m.name), CJK, `name is "${m.name}"`);
assert.doesNotMatch(String(m.description), CJK, `description is "${m.description}"`);
assert.equal(m.short_name, "OmniRoute");
});