Skip to content

feat: add native i18n support via themeConfig - #145

Open
mgigirey wants to merge 1 commit into
okineadev:mainfrom
mgigirey:main
Open

feat: add native i18n support via themeConfig#145
mgigirey wants to merge 1 commit into
okineadev:mainfrom
mgigirey:main

Conversation

@mgigirey

Copy link
Copy Markdown

Implements dynamic localization support for CopyOrDownloadAsMarkdownButtons.vue by pulling custom interface strings from VitePress's reactive themeConfig.llms block.

  • Introduces string interpolation for the {provider} token inside the AI provider loop.
  • Adds comprehensive JSDoc definitions and module augmentation to src/types.d.ts.
  • Preserves original English strings as safe default fallback values.

Description

Adds native i18n support to the plugin's UI layout component using standard VitePress core themeConfig patterns.

Related Issue

This PR closes #144

@pkg-pr-new

pkg-pr-new Bot commented Aug 31, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/vitepress-plugin-llms@145

commit: ec3c1b9

Implements dynamic localization support for `CopyOrDownloadAsMarkdownButtons.vue`
by pulling custom interface strings from VitePress's reactive `themeConfig.llms` block.

- Exposes `copyText`, `copiedText`, `viewMarkdownText`, and `openInAIText` properties.
- Introduces string interpolation for the `{provider}` token inside the AI provider loop.
- Adds comprehensive JSDoc definitions and module augmentation to `src/types.d.ts`.
- Preserves original English strings as safe default fallback values.

Closes okineadev#144
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.

feat: Add native i18n localization support via themeConfig

1 participant