You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Avoid filler like "the text for a button"; be specific and succinct.
14
+
Key rules (CRITICAL):
15
+
- Use the EXACT key string as written inside \`t('...')\` or \`t("...")\`.
16
+
- Do NOT transform or infer namespaces.
17
+
- Do NOT add, remove, or modify leading dots, prefixes, or suffixes (e.g., keep ".heading", keep "_html").
18
+
- Do NOT deduce or prepend any namespace — the property name must match the code verbatim.
19
+
20
+
What to extract:
21
+
- Scan only the NEW sections to find all \`t("...")\` / \`t('...')\` usages.
22
+
- For every discovered key, create exactly one entry in the output JSON:
23
+
- Property name: the exact key string from the code.
24
+
- Property value: a single multi-line string with EXACTLY these fields, in this order,
25
+
each on its own line starting with a bold label:
26
+
**Functional Purpose**: <short, specific purpose in the UI>
27
+
**UI Location**: <precise place in the UI hierarchy (e.g., "Settings → General → Header")>
28
+
**When Users See This**: <concise trigger/context>
29
+
**Technical Context**: <only relevant technical notes; list variables exactly and state they must remain unchanged>
30
+
**Current English**: "<English text from OLD if available; else empty quotes>"
31
+
32
+
Grounding & variables:
33
+
- Use OLD text and nearby JSX to keep descriptions specific.
34
+
- If placeholders/variables appear (e.g., \`%{name}\`, \`{{count}}\`, \`{value}\`), list them under **Technical Context** EXACTLY as written and say "must remain unchanged".
35
+
- Be brief; do not over-explain obvious UI strings.
36
+
- Do not invent content not supported by OLD/NEW.
37
+
38
+
Deduplication:
39
+
- If the same exact key appears multiple times, include it once; the last occurrence wins.
19
40
20
41
Output rules:
21
-
- Output MUST be a single JSON array of objects. Do not return NDJSON, prose, or code fences.
22
-
- Preserve suffixes like "_html" in keys.
23
-
- Include ONLY keys that appear in NEW sections.
24
-
- Do not duplicate keys.
42
+
- Output MUST be a single JSON object (not an array). No prose, comments, or code fences.
43
+
- Include ONLY keys found in NEW sections via \`t(...)\`.
44
+
- If no \`t(...)\` keys are found, output \`{}\`.
25
45
26
-
Example:
46
+
Example (conceptual):
27
47
OLD:
28
48
<h1>General settings</h1>
29
49
NEW:
30
50
<h1>{t('.heading')}</h1>
51
+
31
52
Output:
32
-
[
33
-
{"key":".heading","desc":"This is the main heading for the general settings page."}
34
-
]
53
+
{
54
+
".heading": "**Functional Purpose**: Page heading for General settings\\n**UI Location**: Settings → General (page header)\\n**When Users See This**: On opening the General settings page\\n**Technical Context**: Standard text; no special formatting\\n**Current English**: \\"General settings\\""
55
+
}
56
+
57
+
Respond with a single JSON object only. Do not include code fences, comments, or extra text.
"commentsList.commentView.edit": "**Functional Purpose**: Button text for editing a comment\n**UI Location**: Community Solutions → Comment List → Individual Comment\n**When Users See This**: When a user views their own comment and it is editable\n**Technical Context**: Standard text; no special formatting\n**Current English**: \"Edit\""
"commentsList.count.numberOfComments": "**Functional Purpose**: Displays the total number of comments for a solution\n**UI Location**: Community Solutions → Solution Detail Page → Comments section heading\n**When Users See This**: When viewing a solution detail page with comments\n**Technical Context**: Variables `number` and `pluralize` must remain unchanged.\n**Current English**: \"{number} {pluralize('comment', number)}\"",
3
+
"commentsList.emptyList.noComments": "**Functional Purpose**: Informs the user that there are no comments yet\n**UI Location**: Community Solutions → Solution Detail Page → Comments section (when empty)\n**When Users See This**: When a solution has no comments\n**Technical Context**: Standard text; no special formatting\n**Current English**: \"No one has commented on this solution.\"",
4
+
"commentsList.emptyList.beFirst": "**Functional Purpose**: Encourages the user to add the first comment\n**UI Location**: Community Solutions → Solution Detail Page → Comments section (when empty)\n**When Users See This**: When a solution has no comments\n**Technical Context**: Standard text; no special formatting\n**Current English**: \"Be the first to add your comment!\""
"commentsList.options.disableComments": "**Functional Purpose**: Button to disable comments for a solution\n**UI Location**: Community Solutions → Comments List → Options dropdown\n**When Users See This**: When viewing a solution as its author and comments are currently enabled\n**Technical Context**: Appears as an option in a dropdown menu. No variables.\n**Current English**: \"Disable comments…\"",
3
+
"commentsList.options.enableComments": "**Functional Purpose**: Button to enable comments for a solution\n**UI Location**: Community Solutions → Comments List → Options dropdown\n**When Users See This**: When viewing a solution as its author and comments are currently disabled\n**Technical Context**: Appears as an option in a dropdown menu. No variables.\n**Current English**: \"Enable comments…\"",
4
+
"commentsList.header.writeComment": "**Functional Purpose**: Heading for the comment submission section\n**UI Location**: Community Solutions → Comments List (header)\n**When Users See This**: Above the form for adding a new comment to a solution\n**Technical Context**: Standard text. No variables.\n**Current English**: \"Write a comment\""
"commentsList.listDisabled.disabledCommentsAuthor": "**Functional Purpose**: Inform the author that they have disabled comments.\n**UI Location**: Community Solutions → Comments list (when comments are disabled by author)\n**When Users See This**: When the author views a solution where they have disabled comments.\n**Technical Context**: Standard text; no special formatting\n**Current English**: \"You have disabled comments on this solution. Use the \\\"Options\\\" cog above to toggle this option.\"",
3
+
"commentsList.listDisabled.disabledComments": "**Functional Purpose**: Inform a non-author user that comments are disabled.\n**UI Location**: Community Solutions → Comments list (when comments are disabled)\n**When Users See This**: When a user who is not the author views a solution where comments have been disabled.\n**Technical Context**: Standard text; no special formatting\n**Current English**: \"Comments have been disabled\""
0 commit comments