fix(i18n): translate the Edit Commit Message warning title and allow the var() swatch tooltip (#8057)

textCatalog.test.ts failed on main: the pushed-history warning of Edit Commit Message passed an untranslated "Edit commit message" literal as its title, now the action's catalog title "Edit Commit Message"; and the color gutter's var(--name) = value tooltip is CSS shown as written, now listed in TEMPLATES_AS_WRITTEN.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-12-04 22:35:56 +08:00
1 джерело 535f7584ee
коміт 24fdbb54db
2 files changed
+3 -2

No files matched your search

+2 -2
Переглянути файл
@@ -321,8 +321,8 @@ async function rewordRange(target: Commit): Promise<RewriteRange | null> {
};
if (await rangeTouchesUpstream(branch, range, repo)) {
const ok = await confirmDialog({
title: "Edit commit message",
message: pushedWarning("Edit commit message", branch),
title: "Edit Commit Message",
message: pushedWarning("Edit Commit Message", branch),
okLabel: "Continue",
danger: true,
});
+1
Переглянути файл
@@ -331,6 +331,7 @@ const COMPLETE_LOCALES = new Set(["zh"]);
const TEMPLATES_AS_WRITTEN = new Set<string>([
"{name} (#[cfg(test)])", // Rust attribute after a module name
"HEAD ({renamedFrom})", // Git revision and a path
"var({m}) = {fill}", // a CSS custom property and the color it resolves to
]);
/**