diff --git a/docs/ui-modernisation/DIALOG_TEXT_CONTRACT.md b/docs/ui-modernisation/DIALOG_TEXT_CONTRACT.md index 2d654796..a0a1b3c3 100644 --- a/docs/ui-modernisation/DIALOG_TEXT_CONTRACT.md +++ b/docs/ui-modernisation/DIALOG_TEXT_CONTRACT.md @@ -29,3 +29,17 @@ Current Next build remains FAILED pending advisory qualification. This package cannot claim fresh browser/device/native-language, full I18N/A3 or release acceptance. Roll back by reverting only this package's source commits on the development branch, preserving unrelated work; no database/data migration is involved. Validation and exact counts: [pending dialog language continuity](DIALOG_TEXT_VALIDATION.md). Central tracker publication is recorded separately. + +## Bounded follow-up: translated fallback parameters + +Four existing caller families pass application-owned translated labels as primitive parameters: blank custom-section title, default built-in section name, missing company and missing CV name. Resolving only the outer message leaves these fallback labels stale. Use a one-level explicit `{ key: TranslationKey }` parameter alongside existing string/number values; resolve it with the current existing translator before ordinary interpolation. No nested params, recursion, callbacks, reverse lookup or new message engine. I18nProvider/TranslationParams and literal user data stay unchanged. + +Reuse the existing twelve-name section mapping once for both normal section labels and dialog metadata, with own-key lookup; unknown/prototype-shaped names remain literal fallbacks. Preserve exact existing `||` versus `??` behavior, including empty strings and whitespace. Only caller-owned fallback branches construct descriptors; user/job/company/CV/section titles remain literal strings, even if they look like translation keys. + +Worker owns only dialogText/dialog-text tests, CvBuilderEditor/deep-link tests, JobTable/jobs-view tests and CvBuilderPage/page tests. Root owns evidence/progress records and serialises checks, commits and graph. This is compatible maintenance under existing delegated technical authority; no new locale/provider/renderer/schema or formal I18N-stage acceptance. + +- [ ] Reproduce pending fallback-copy cases before source change; retain literal/numeric0/Unicode/markup/no-context behavior. +- [ ] Implement the one-level descriptor and four caller families without changing revision, save, cancellation, focus, selection or mutation contracts. +- [ ] Run affected suites, non-incremental typecheck/scoped lint, source review, AST refresh and source/native bindings; publish and independently verify refs. + +Rollback by reverting only the bounded follow-up source commit(s), retaining unrelated work. Existing Next/build, native/device, human language, final A3, formal European locale, security and release gates remain open.