x18n

mcp
Security Audit
Warn
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 9 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Universal toolkits for linting, viewing and managing i18n for any frameworks.

README.md

x18n

x18n

Universal toolkits for linting, viewing and managing i18n for any frameworks.

x18n is the spiritual successor of i18n-ally, that generalizes its concepts into a framework-agnostic toolkit that runs everywhere with a more robust and extensible architecture.

Usages

You can use the @x18n/cli package to check, analyze, and manage your i18n resources from the command line.

For example,

pnpx @x18n/cli

would output an overview of the i18n resources,

pnpx @x18n/cli check

would do the linting and checking of your i18n resources, reporting missing keys, or unused keys.

pnpx @x18n/cli usages nav.keys

would list all the usages of the specified key (nav.keys) across your project.

You can also run

pnpx @x18n/cli ui

to have an interactive UI in browser to manage your i18n resources easily.

Additionally, you can also install the VS Code extension for a rendering the translations directly within the editor, enabling inline translation previews, and providing rich "Go to Definition" and "Find References" support for your i18n keys.

For other editors, you can use the Language Server to enable similar features.

Packages

Package What it is
@x18n/core Engine that runs in Node and in the browser: domain model, plugin API, analysis, edits
@x18n/builtins Built-in plugins: formats, locale finders, usage scanners, checks, reporters, presets for popular i18n libraries
@x18n/node Node.js host: file system, config and plugin loading
@x18n/cli The CLI, with JSON output for CI and agents
@x18n/lsp Language server for any LSP editor
@x18n/ui devframe UI: local dev server, static report, in-browser workspace, VS Code panel
x18n-vscode VS Code extension on top of the language server

Credits

x18n builds on the ideas of i18n Ally and i18n Ally Next.

License

MIT License © Anthony Fu

Reviews (0)

No results found