Skip to content

feat(theme-management): native PayloadCMS 3 i18n (cs+en, extensible)#15

Open
vitakili wants to merge 2 commits into
mainfrom
claude/theme-management-i18n-GyBDX
Open

feat(theme-management): native PayloadCMS 3 i18n (cs+en, extensible)#15
vitakili wants to merge 2 commits into
mainfrom
claude/theme-management-i18n-GyBDX

Conversation

@vitakili

@vitakili vitakili commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Register plugin translations into Payload's native config.i18n under the
'theme-management' namespace and make them extensible through the plugin
configuration.

  • Add mergeThemeManagementI18n / getThemeManagementI18nTranslations helpers
    and wire them into the plugin so config.i18n is populated on every return path
  • Add i18n plugin option (translations + supportedLanguages) for adding
    languages or overriding individual strings (deep-merged, English fallback)
  • Add useThemeTranslations / useThemeLanguage client hooks that resolve the
    active admin language via Payload's i18n context, replacing navigator sniffing
  • Convert ThemePreviewField, FontSelectField, StylePresetField,
    AppearancePreviewField, ThemeTokenSelectField and the FontPicker to the hooks
  • Export i18n helpers/types and a ./hooks/* subpath; document in README + docs
  • Add native i18n unit tests; update existing client-field test mocks

https://claude.ai/code/session_01PcwnVNnbrbgRo8B3tdnJJy

claude added 2 commits June 8, 2026 07:10
Register plugin translations into Payload's native config.i18n under the
'theme-management' namespace and make them extensible through the plugin
configuration.

- Add mergeThemeManagementI18n / getThemeManagementI18nTranslations helpers
  and wire them into the plugin so config.i18n is populated on every return path
- Add i18n plugin option (translations + supportedLanguages) for adding
  languages or overriding individual strings (deep-merged, English fallback)
- Add useThemeTranslations / useThemeLanguage client hooks that resolve the
  active admin language via Payload's i18n context, replacing navigator sniffing
- Convert ThemePreviewField, FontSelectField, StylePresetField,
  AppearancePreviewField, ThemeTokenSelectField and the FontPicker to the hooks
- Export i18n helpers/types and a ./hooks/* subpath; document in README + docs
- Add native i18n unit tests; update existing client-field test mocks

https://claude.ai/code/session_01PcwnVNnbrbgRo8B3tdnJJy
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.

2 participants