i18n(timeline): add zeitstrahl visual-fidelity strings (REQ-015)
Seven new timeline_* keys feeding the upcoming chrome: the header meta line (grouping label + events count), the event-pill provenance token, the ✉ sr-only label, the world-band "historisch" suffix, and the strip density caption — present in de/en/es with matching key sets, pinned by a new parity test. Refs #833 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -68,4 +68,24 @@ describe('message key parity', () => {
|
||||
timeline_derived_marriage: 'Matrimonio'
|
||||
});
|
||||
});
|
||||
|
||||
// #833 REQ-015: the new visual-fidelity strings (meta line, provenance token,
|
||||
// ✉ label, world-band suffix, density caption) are Paraglide keys present in
|
||||
// every locale so no surface ever falls back to a missing translation.
|
||||
it('zeitstrahl visual-fidelity keys are present in all locales (#833 REQ-015)', () => {
|
||||
const requiredKeys = [
|
||||
'timeline_grouping_date',
|
||||
'timeline_provenance_derived',
|
||||
'timeline_provenance_curated',
|
||||
'timeline_letter_glyph_label',
|
||||
'timeline_layer_historical_suffix',
|
||||
'timeline_strip_density_caption',
|
||||
'timeline_events_count'
|
||||
];
|
||||
for (const key of requiredKeys) {
|
||||
expect(de, `missing key in de: ${key}`).toHaveProperty(key);
|
||||
expect(en, `missing key in en: ${key}`).toHaveProperty(key);
|
||||
expect(es, `missing key in es: ${key}`).toHaveProperty(key);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user