fix(i18n): make parity artifact reproducible
This commit is contained in:
@@ -6,11 +6,8 @@ Issue: **#277** (`[READY][#175][P3] Shared i18n registry artifact: backend/front
|
||||
|
||||
- `artifact_id`: `issue-277-shared-i18n-parity-report`
|
||||
- `artifact_version`: `1.0`
|
||||
- `generated_at`: `2026-03-13T09:10:14Z`
|
||||
- `catalog_source`: `shared/i18n/lobby.json`
|
||||
- `generator`: `scripts/report_i18n_parity.py`
|
||||
- `delivery_pr`: `#282`
|
||||
- `delivery_head_sha`: `b8a9fbf6d15c1a2c8d40ce6a3273858019b12889`
|
||||
|
||||
## Naming/version rules (email-manager-inspired strategy)
|
||||
|
||||
|
||||
@@ -9,7 +9,6 @@ from __future__ import annotations
|
||||
|
||||
import json
|
||||
from dataclasses import dataclass
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parents[1]
|
||||
@@ -113,7 +112,6 @@ def build_mapping_rows(catalog: dict) -> list[MappingRow]:
|
||||
|
||||
|
||||
def render_report(catalog: dict) -> str:
|
||||
generated_at = datetime.now(timezone.utc).replace(microsecond=0).isoformat().replace("+00:00", "Z")
|
||||
mapping_rows = build_mapping_rows(catalog)
|
||||
frontend_ui_ok = all(translation_state(catalog, key)[0] for key in MVP_FRONTEND_UI_KEYS)
|
||||
frontend_error_ok = all(translation_state(catalog, key)[0] for key in MVP_FRONTEND_ERROR_KEYS)
|
||||
@@ -130,7 +128,6 @@ def render_report(catalog: dict) -> str:
|
||||
lines.append("")
|
||||
lines.append(f"- `artifact_id`: `{ARTIFACT_ID}`")
|
||||
lines.append(f"- `artifact_version`: `{ARTIFACT_VERSION}`")
|
||||
lines.append(f"- `generated_at`: `{generated_at}`")
|
||||
lines.append(f"- `catalog_source`: `{CATALOG_PATH.relative_to(REPO_ROOT)}`")
|
||||
lines.append(f"- `generator`: `scripts/{Path(__file__).name}`")
|
||||
lines.append("")
|
||||
|
||||
Reference in New Issue
Block a user