fix(web): externalize copy the jsx-only i18n guard cannot see, and gate it (#2711)

Co-authored-by: Kandev Agent <agent@kandev.dev>
This commit is contained in:
João Salavisa
2026-08-16 12:08:59 +01:00
committed by GitHub
parent 38c94e7d00
commit 63c21686ff
140 changed files with 1534 additions and 233 deletions
@@ -68,6 +68,7 @@ export function toTaskPreset(stored: GitHubActionPreset): TaskPreset {
// into a user's saved presets and leave them there after a locale switch.
// `prompt_template` is additionally sent to the agent verbatim. Localizing these
// needs a key/persisted-value split, the same open item as PR_PRESETS.
// i18n-exempt: persisted preset seed. Localizing needs a key/value split in the preset type.
export const DEFAULT_PR_PRESETS: GitHubActionPreset[] = [
{
id: "review",
@@ -95,6 +96,7 @@ export const DEFAULT_PR_PRESETS: GitHubActionPreset[] = [
},
];
// i18n-exempt: persisted preset seed. Localizing needs a key/value split in the preset type.
export const DEFAULT_ISSUE_PRESETS: GitHubActionPreset[] = [
{
id: "implement",
@@ -27,6 +27,7 @@ export type PresetOption = {
// them there after a locale switch. Localizing these needs a key/persisted-value
// split in this module, the same open item as the built-in layout profile names.
// `value`, `filter` and `group` are wire values and a GitHub search query.
// i18n-exempt: persisted saved-search seed, and the query beside it is GitHub search syntax.
export const PR_PRESETS: PresetOption[] = [
{
value: "review_requested",
@@ -65,6 +66,7 @@ export const PR_PRESETS: PresetOption[] = [
},
];
// i18n-exempt: persisted saved-search seed, and the query beside it is GitHub search syntax.
export const ISSUE_PRESETS: PresetOption[] = [
{
value: "assigned",