mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-11-22 04:19:40 +00:00
fix(pwa): restore English name and description in the PWA manifest (#20504)
This commit is contained in:
1
changelog.d/fixes/20504-pwa-manifest-english.md
Normal file
1
changelog.d/fixes/20504-pwa-manifest-english.md
Normal file
@@ -0,0 +1 @@
|
||||
- fix(pwa): restore English name and description in the PWA manifest, which declares lang en (#20504)
|
||||
@@ -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",
|
||||
|
||||
16
tests/unit/pwa-manifest-lang-20504.test.ts
Normal file
16
tests/unit/pwa-manifest-lang-20504.test.ts
Normal 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");
|
||||
});
|
||||
Reference in New Issue
Block a user