Commit ec5d732
authored
feat(translation): complete translation parity review batches (#144)
* chore(i18n): update locale code maps and parity scripts
* feat(notion-fetch): enforce deterministic locale grouping and category generation
* feat(notion-fetch): improve locale section fallback and callout transforms
* feat(notion-fetch): preserve callout children and harden title extraction
* feat(notion-translate): preserve rich text and add conversion diagnostics
* test(translation): add locale parity harness and tracking docs
* fix(i18n): normalize es/pt translation key parity
* Codex-generated pull request (#146)
* fix(parity): harden tokenizer and icon stripping behavior
* docs(translation): audit resolved and remaining parity issues
* fix(callout): support locale punctuation separators
* fix(translation): close remaining parity harness and typing gaps
* fix(translation): resolve remaining merge-blocking type issues
* fix(test): align notion translation env bootstrap with runtime validation
* fix(parity): avoid nested-list and setext tokenization false positives
* fix(translation): correct callout delimiter and less language mapping
* fix(parity): preserve accented callouts and nested-list parent order
* fix(i18n): remove cross-language entries swapped into es and pt locale files
Portuguese strings were appended to i18n/es/code.json and Spanish strings to
i18n/pt/code.json. All the misplaced entries are duplicates of keys already
present in the correct locale file, so they can be removed outright.
* fix(i18n): remove self-referential translated keys from es and pt locale files
Six entries in es/code.json used Spanish text as both key and value, and six
entries in pt/code.json used Portuguese text as both key and value. Three of
each were duplicates of correctly English-keyed entries; the remaining three
were placeholder Notion labels (New Page, New Section Title, New Toggle,
Planejamento e Preparação para um Projeto) that had no English counterpart.
Removing all 12 reduces the cross-locale key diff from 12 to 0, unblocking
the verify-locale-output.test.ts parity check (max allowed: 3).
* chore(i18n): stop tracking locale files on feature branch
i18n/ is gitignored and belongs only on the content branch.
Previous commits on this branch incorrectly force-added and patched
i18n/es/code.json and i18n/pt/code.json directly. The content branch
does not have those bad entries, so no fix is needed there.
Remove the files from git tracking so the gitignore rule is respected.
* ci(test): fetch i18n content from content branch before running tests
The i18n/ directory is gitignored and lives only on the content branch.
Tests in verify-locale-output.test.ts require locale files to be present,
so mirror the pattern used by the deploy-pr-preview workflow:
git checkout origin/content -- i18n/
Falls back gracefully (|| echo) if the content branch is unavailable.
* docs: update _category_.json creation to include all locales
Correction reflects code change in sectionProcessors.ts that removed
the English-only guard.
🤖 Generated with [Qoder][https://qoder.com]
* refactor: remove unused createAnnotations function
Dead code identified in PR review - function was defined but never called.
🤖 Generated with [Qoder][https://qoder.com]
* fix(translate): add table support and rate limit guard for block deletion
- Import remark-gfm so GFM tables are parsed (without it, table syntax
falls through to plain-text paragraphs)
- Add TableNode/TableRowNode/TableCellNode types and a 'table' case in
the markdown-to-Notion switch, producing a Notion table block with
inline table_row children and has_column_header based on row count
- Add 100ms delay between individual block delete calls to avoid
hitting Notion rate limits when updating pages with many blocks
- Add 3 tests covering full table conversion, single-row tables, and
the no-paragraph-fallback invariant
* fix(ci,scripts): harden translation root/filter and frontmatter handling1 parent 023dad4 commit ec5d732
File tree
25 files changed
+4235
-530
lines changed- .github/workflows
- context/development
- i18n
- es
- pt
- scripts
- notion-fetch
- notion-translate
25 files changed
+4235
-530
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
29 | 41 | | |
30 | 42 | | |
31 | 43 | | |
32 | 44 | | |
33 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| |||
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| 107 | + | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| |||
221 | 227 | | |
222 | 228 | | |
223 | 229 | | |
| 230 | + | |
224 | 231 | | |
225 | 232 | | |
226 | 233 | | |
227 | 234 | | |
228 | 235 | | |
229 | 236 | | |
| 237 | + | |
230 | 238 | | |
231 | 239 | | |
232 | 240 | | |
233 | 241 | | |
234 | 242 | | |
235 | 243 | | |
| 244 | + | |
236 | 245 | | |
237 | 246 | | |
238 | 247 | | |
239 | 248 | | |
240 | 249 | | |
241 | 250 | | |
| 251 | + | |
242 | 252 | | |
243 | 253 | | |
244 | 254 | | |
| |||
247 | 257 | | |
248 | 258 | | |
249 | 259 | | |
| 260 | + | |
250 | 261 | | |
251 | 262 | | |
252 | 263 | | |
253 | 264 | | |
254 | 265 | | |
| 266 | + | |
255 | 267 | | |
256 | 268 | | |
257 | 269 | | |
| |||
Lines changed: 129 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
0 commit comments