Repository navigation
Commit b62c99f
authored
fix(docs): derive the sitemap's static-page locales from the pages that own the copy (#195)
Fixes #173
sitemap.ts restated the locale surface of privacy and terms as a hand-maintained
constant. Correct today, and silently wrong the moment a key is added to either
page's content record: the translation would exist, be reachable, render — and
never be advertised, with no gate failing. It was the one hand-maintained thing
left in a file #169 otherwise made fully derived.
Each route module now exports the keys of its own content record, and sitemap.ts
reads the two of them separately rather than restating the pair. Read separately
because they are separate records: they agree today and nothing makes them have
to, which the old shared constant could not express.
Derived from content rather than from i18n.languages because the renderer still
serves English for any other locale, and that fallback is not a translation and
must not be advertised as one.
The advertised set does not move: 346 entries before and after, with the sorted
url entries hashing to a57adad5 on both trees. Raw bytes differ because entry
order is not reproducible — pre-existing, measured with two builds of an
untouched tree, filed as #194.
Derivation exercised rather than assumed: adding a ja key to privacy's record
alone, with sitemap.ts untouched, advertises /ja/privacy and leaves terms at
two. Probe reverted and the revert proven on disk.1 parent d6355de commit b62c99f
3 files changed
Lines changed: 44 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
54 | 70 | | |
55 | 71 | | |
56 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
62 | 78 | | |
63 | 79 | | |
64 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 10 | | |
19 | 11 | | |
20 | 12 | | |
| |||
23 | 15 | | |
24 | 16 | | |
25 | 17 | | |
26 | | - | |
27 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments