Skip to content

feat(plugin-nested-docs): support for translations#17489

Open
deepshekhardas wants to merge 2 commits into
payloadcms:mainfrom
deepshekhardas:fix/pr-16801-nested-docs-translations
Open

feat(plugin-nested-docs): support for translations#17489
deepshekhardas wants to merge 2 commits into
payloadcms:mainfrom
deepshekhardas:fix/pr-16801-nested-docs-translations

Conversation

@deepshekhardas

Copy link
Copy Markdown
Contributor

Rebased on latest main with conflict resolution.\n\nConflict resolved:\n- packages/plugin-nested-docs/src/index.ts: merged the i18n block (from PR) after the collections mapping and before closing braces

Introduces translation keys and default translations for the nested docs plugin fields (breadcrumbs, parent). This enables the plugin to display its UI labels in multiple languages within the Payload admin, improving user experience for internationalized installations.

The plugin now registers its own translation namespace, allowing its field labels to be localized and overridden through the main Payload i18n configuration.
Configures `package.json` exports to allow the main Payload application to
discover and load the plugin's language-specific translation files.

This completes the integration of the plugin's internationalization
capabilities, enabling its UI labels to be properly localized.

Additionally, corrects the relative `$schema` path within the translation
files and promotes `@payloadcms/translations` to a runtime dependency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants