docs(openspec): archive MITHOME-111 globals localization change
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s
CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s
Sync the localized page globals and lossless locale migration requirements into the content-management spec. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
dac55d9d0b
commit
183b304687
+61
@@ -0,0 +1,61 @@
|
||||
# Spec Delta
|
||||
|
||||
## ADDED Requirements
|
||||
|
||||
### Requirement: Localized page globals
|
||||
|
||||
The Home, About, Services, Contact, and Common globals SHALL store every translatable
|
||||
text value (titles, subtitles, descriptions, body paragraphs, labels, button texts,
|
||||
form messages, FAQ entries, metadata, and locale-dependent link targets) separately per
|
||||
locale. Structural values (icons, row identifiers, the external-link flag, and the
|
||||
postal address) SHALL be shared across locales. List items that consist of a single
|
||||
text value (paragraph lists, bullet lists, feature lists, specification item lists)
|
||||
SHALL be editable per locale, including a different number of items per locale. For
|
||||
lists of structured rows, the row count, order, and structural values SHALL be shared
|
||||
across locales, and only the text values within each row SHALL be localized.
|
||||
|
||||
#### Scenario: An administrator saves an English value
|
||||
|
||||
- **WHEN** an administrator edits a translatable global field in the `en` locale and
|
||||
publishes it
|
||||
- **THEN** the English public page SHALL render the English value and the Hungarian
|
||||
public page SHALL continue to render the unchanged Hungarian value
|
||||
|
||||
#### Scenario: An administrator changes a shared structural value
|
||||
|
||||
- **WHEN** an administrator changes a structural value such as an icon in either locale
|
||||
- **THEN** both locales SHALL render the changed value
|
||||
|
||||
#### Scenario: A paragraph list differs between locales
|
||||
|
||||
- **WHEN** the Hungarian version of a paragraph list has three items and the English
|
||||
version has two
|
||||
- **THEN** each locale's public page SHALL render exactly its own items
|
||||
|
||||
### Requirement: Lossless locale migration of existing content
|
||||
|
||||
When a previously non-localized global field becomes localized, its existing value
|
||||
SHALL be preserved as the Hungarian value, including values edited by administrators
|
||||
after the initial content import. The migration SHALL cover published content, saved
|
||||
drafts, and version history, SHALL NOT overwrite existing content with seed data, and
|
||||
SHALL be safe to run more than once. Deployed environments SHALL apply the migration
|
||||
without a manual step.
|
||||
|
||||
#### Scenario: Deploy onto a database with administrator edits
|
||||
|
||||
- **WHEN** the localized configuration is deployed onto a database whose globals were
|
||||
edited in the admin after the initial import
|
||||
- **THEN** after startup the Hungarian public pages SHALL render the edited values
|
||||
unchanged, and the English public pages SHALL render the same values through fallback
|
||||
|
||||
#### Scenario: Restore an older version after migration
|
||||
|
||||
- **WHEN** an administrator opens or restores a global version saved before the
|
||||
migration
|
||||
- **THEN** the version SHALL show its original text as the Hungarian value rather than
|
||||
empty fields
|
||||
|
||||
#### Scenario: Migration runs a second time
|
||||
|
||||
- **WHEN** the migration is executed on already migrated data
|
||||
- **THEN** stored values SHALL remain unchanged
|
||||
Reference in New Issue
Block a user