chore(i18n): drop the unused date_original_label key and stale comments
All checks were successful
CI / Unit & Component Tests (pull_request) Successful in 3m18s
CI / OCR Service Tests (pull_request) Successful in 22s
CI / Backend Unit Tests (pull_request) Successful in 3m39s
CI / fail2ban Regex (pull_request) Successful in 46s
CI / Semgrep Security Scan (pull_request) Successful in 21s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m5s
CI / Unit & Component Tests (push) Successful in 3m19s
CI / OCR Service Tests (push) Successful in 24s
CI / Backend Unit Tests (push) Successful in 3m37s
CI / fail2ban Regex (push) Successful in 44s
CI / Semgrep Security Scan (push) Successful in 21s
CI / Compose Bucket Idempotency (push) Successful in 1m6s
All checks were successful
CI / Unit & Component Tests (pull_request) Successful in 3m18s
CI / OCR Service Tests (pull_request) Successful in 22s
CI / Backend Unit Tests (pull_request) Successful in 3m39s
CI / fail2ban Regex (pull_request) Successful in 46s
CI / Semgrep Security Scan (pull_request) Successful in 21s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m5s
CI / Unit & Component Tests (push) Successful in 3m19s
CI / OCR Service Tests (push) Successful in 24s
CI / Backend Unit Tests (push) Successful in 3m37s
CI / fail2ban Regex (push) Successful in 44s
CI / Semgrep Security Scan (push) Successful in 21s
CI / Compose Bucket Idempotency (push) Successful in 1m6s
With the visible "Originaltext" line gone from every view, the date_original_label message has no remaining references — remove it from de/en/es. Also drop the now-inaccurate comments in documentDate.ts that described the raw cell as "preserved separately as the visible secondary line"; the raw cell now only feeds the SEASON word and is never shown. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit was merged in pull request #712.
This commit is contained in:
@@ -302,7 +302,6 @@
|
|||||||
"date_season_summer": "Sommer",
|
"date_season_summer": "Sommer",
|
||||||
"date_season_autumn": "Herbst",
|
"date_season_autumn": "Herbst",
|
||||||
"date_season_winter": "Winter",
|
"date_season_winter": "Winter",
|
||||||
"date_original_label": "Originaltext:",
|
|
||||||
"date_unknown_icon_label": "Datum unbekannt",
|
"date_unknown_icon_label": "Datum unbekannt",
|
||||||
"form_label_date_precision": "Datumsgenauigkeit",
|
"form_label_date_precision": "Datumsgenauigkeit",
|
||||||
"form_label_date_end": "Enddatum",
|
"form_label_date_end": "Enddatum",
|
||||||
|
|||||||
@@ -302,7 +302,6 @@
|
|||||||
"date_season_summer": "Summer",
|
"date_season_summer": "Summer",
|
||||||
"date_season_autumn": "Autumn",
|
"date_season_autumn": "Autumn",
|
||||||
"date_season_winter": "Winter",
|
"date_season_winter": "Winter",
|
||||||
"date_original_label": "Original:",
|
|
||||||
"date_unknown_icon_label": "Date unknown",
|
"date_unknown_icon_label": "Date unknown",
|
||||||
"form_label_date_precision": "Date precision",
|
"form_label_date_precision": "Date precision",
|
||||||
"form_label_date_end": "End date",
|
"form_label_date_end": "End date",
|
||||||
|
|||||||
@@ -302,7 +302,6 @@
|
|||||||
"date_season_summer": "Verano",
|
"date_season_summer": "Verano",
|
||||||
"date_season_autumn": "Otoño",
|
"date_season_autumn": "Otoño",
|
||||||
"date_season_winter": "Invierno",
|
"date_season_winter": "Invierno",
|
||||||
"date_original_label": "Texto original:",
|
|
||||||
"date_unknown_icon_label": "Fecha desconocida",
|
"date_unknown_icon_label": "Fecha desconocida",
|
||||||
"form_label_date_precision": "Precisión de la fecha",
|
"form_label_date_precision": "Precisión de la fecha",
|
||||||
"form_label_date_end": "Fecha final",
|
"form_label_date_end": "Fecha final",
|
||||||
|
|||||||
@@ -20,8 +20,7 @@ export type DatePrecision = 'DAY' | 'MONTH' | 'SEASON' | 'YEAR' | 'RANGE' | 'APP
|
|||||||
* {@code DocumentTitleFormatter}: both are asserted against
|
* {@code DocumentTitleFormatter}: both are asserted against
|
||||||
* `docs/date-label-fixtures.json` so they cannot drift. The untrusted `raw`
|
* `docs/date-label-fixtures.json` so they cannot drift. The untrusted `raw`
|
||||||
* cell is only used to derive a season word (a known German season token) — it
|
* cell is only used to derive a season word (a known German season token) — it
|
||||||
* is otherwise rendered separately by the caller via Svelte default escaping,
|
* is never displayed and never interpolated into HTML here.
|
||||||
* never interpolated into HTML here.
|
|
||||||
*
|
*
|
||||||
* @param iso the sort/filter anchor day (`YYYY-MM-DD`), nullable for UNKNOWN rows
|
* @param iso the sort/filter anchor day (`YYYY-MM-DD`), nullable for UNKNOWN rows
|
||||||
* @param precision descriptive precision metadata
|
* @param precision descriptive precision metadata
|
||||||
@@ -82,8 +81,7 @@ function seasonLabel(
|
|||||||
): string {
|
): string {
|
||||||
const month = Number(iso.slice(5, 7));
|
const month = Number(iso.slice(5, 7));
|
||||||
// Prefer the season named in the raw cell; fall back to deriving it from the
|
// Prefer the season named in the raw cell; fall back to deriving it from the
|
||||||
// anchor month. Either way the WORD is localized (Decision 4) — the verbatim
|
// anchor month. Either way the WORD is localized (Decision 4).
|
||||||
// German raw cell is preserved separately as the visible secondary line.
|
|
||||||
const season = seasonFromRaw(raw) ?? seasonOfMonth(month);
|
const season = seasonFromRaw(raw) ?? seasonOfMonth(month);
|
||||||
return `${seasonWord(season, locale)} ${year}`;
|
return `${seasonWord(season, locale)} ${year}`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user