Skip to content

feat(i18n): re-apply internationalization support#145

Merged
zdunecki merged 3 commits into
masterfrom
feat/i18n-v2
May 12, 2026
Merged

feat(i18n): re-apply internationalization support#145
zdunecki merged 3 commits into
masterfrom
feat/i18n-v2

Conversation

@zdunecki
Copy link
Copy Markdown
Member

Re-applies all i18n changes from feat/i18n branch that were inadvertently reverted along with the canary branch revert.

Original PR: #133

Re-applies all i18n changes from feat/i18n branch that were
inadvertently reverted along with the canary branch revert.

Original PR: #133
@netlify
Copy link
Copy Markdown

netlify Bot commented May 10, 2026

Deploy Preview for xyd-storybook ready!

Name Link
🔨 Latest commit 27f3830
🔍 Latest deploy log https://app.netlify.com/projects/xyd-storybook/deploys/6a013aca28247900084afa5f
😎 Deploy Preview https://deploy-preview-145--xyd-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 10, 2026

Deploy Preview for xyd-website canceled.

Name Link
🔨 Latest commit 27f3830
🔍 Latest deploy log https://app.netlify.com/projects/xyd-website/deploys/6a013aca3899ad00089c6982

@netlify
Copy link
Copy Markdown

netlify Bot commented May 10, 2026

Deploy Preview for xyd-apidocs-demo ready!

Name Link
🔨 Latest commit 27f3830
🔍 Latest deploy log https://app.netlify.com/projects/xyd-apidocs-demo/deploys/6a013aca67b3f90008c8f483
😎 Deploy Preview https://deploy-preview-145--xyd-apidocs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

zdunecki added 2 commits May 11, 2026 00:06
…cher catalog watching

- resolveLocaleSettings + applyOverrides moved to client-safe
  hydration/locale module (exposed at @xyd-js/framework/hydration/locale)
  so the Layout React component can apply per-locale overrides without
  pulling server-only @xyd-js/content into the browser bundle.
- layout.tsx loader computes effectiveSettings = resolveLocaleSettings(
  settings, locale) and uses it for banner content compilation; the
  Layout component re-resolves and passes effectiveSettings to the
  Framework provider so useSettings() returns locale-resolved values
  (banner.icon, banner.label, components.*) per locale.
- documan dev watcher: new resolveI18nCatalogPaths helper; catalog file
  changes (i18n.catalogs[locale] declared paths + i18n/<locale>.json
  convention) trigger the standard settings-reload pipeline so editing
  a catalog hot-refreshes the page.
- e2e fixtures (8.i18n):
    5.catalog-only-navigation/ — verifies top-level navigation.sidebar
      inheritance + "i18n: <key>" group title resolution per locale.
    6.overrides/ — verifies flat dot-key + nested-object overrides
      serialize into the settings bundle for pl/de.
    7.catalog-dollar-overrides/ — verifies $-prefixed catalog keys are
      extracted into navigation.languages[].overrides at boot.
  All three pass (3/3, 4/4, 5/5).
- Unit tests: new i18n.applyOverrides.test.ts adds 17 cases for
  applyOverrides, expandDotKeys, and resolveLocaleSettings end-to-end.
  36/36 plugin-docs tests passing.
- Docs: apps/docs/guides/internalization.md Per-Locale Overrides
  section reworked to use components.banner (renders reliably) instead
  of the footer footnote; three tabs cover text-only, multi-field, and
  catalog $-key overrides.
- Examples submodule: i18n-overrides, i18n-overrides-flat, and
  i18n-catalog-overrides switched to the banner pattern with matching
  pl/de translations and updated READMEs.
@zdunecki zdunecki merged commit 29bef4a into master May 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant