Skip to content

docs(guide): clarify CLI installation for TypeScript configs - #171

Open
SaKaNa-Y wants to merge 1 commit into
x18n-dev:mainfrom
SaKaNa-Y:docs/cli-config-install
Open

SaKaNa-Y wants to merge 1 commit into
x18n-dev:mainfrom
SaKaNa-Y:docs/cli-config-install

Conversation

@SaKaNa-Y

@SaKaNa-Y SaKaNa-Y commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The getting-started guide tells readers to install x18n, but its commands install @x18n/cli. It also says the config imports defineConfig from x18n and requires a local install. The example on the same page imports it from @x18n/core.

- Add `x18n` to the dev dependencies of the project:
+ To run `x18n` from your project scripts, add `@x18n/cli` as a dev dependency:

- The TS config imports `defineConfig` from `x18n`, so the package must be installed in the project before you write an `x18n.config.ts`.
+ The generated TypeScript config imports `defineConfig` from `@x18n/core`. The CLI can load this config without a local x18n install.

Evidence

  • Before: The guide said a project needed a local install before the reader could write x18n.config.ts.
  • After: The guide describes the existing CLI behavior. In a copy of the Vue playground with no dependencies installed, an external build of the CLI ran init. The generated config imported defineConfig from @x18n/core, and doctor --json reported x18n.config.ts.

The generated-docs check reported the same stale LSP reference on the base and PR branches.

Merge Danger

Door: Two-way. Reverting the two paragraphs restores the previous guidance.

Blast Radius: Documentation. The change affects only the Install section of the English getting-started guide.

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

@SaKaNa-Y is attempting to deploy a commit to the NuxtLabs Team on Vercel.

A member of the Team first needs to authorize it.

@SaKaNa-Y
SaKaNa-Y marked this pull request as draft November 22, 2026 05:12
@SaKaNa-Y
SaKaNa-Y marked this pull request as ready for review November 22, 2026 05:24
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