feat(groups): configure message language per group instead of per route

Route.lang is removed; Group.lang now drives the message language for
every route in the group (default en, custom via KV i18n:<lang>).
dispatch.ts loads translations per group and falls back to en for
groups without a lang. Admin UI: GroupEditor gains the language field,
RouteEditor/RouteCard drop theirs; docs and config example updated.
This commit is contained in:
RhenCloud committed 2026-08-12 00:43:47 +08:00
1 parent c73b642504
commit 7e45b0a09c
12 files changed
+114 -40

No files matched your search

+1 -1
View File
@@ -18,7 +18,6 @@ export interface Route {
enabled: boolean;
filters: Filter[];
targets: RouteTarget[];
lang?: string;
groupId?: string;
fallback?: boolean;
stop?: boolean;
@@ -40,6 +39,7 @@ export interface Group {
owners?: string[];
providers?: ("github" | "gitea" | "gitlab")[];
emoji?: boolean;
lang?: string;
}
export interface GroupInvite {