vue-i18n
The internationalization plugin that brings translations, pluralization, and locale-aware formatting to Vue.js 3 apps.
Repository Health
Technical Analysis
Vue I18n is the de facto internationalization plugin for Vue.js 3, maintained under the Intlify project. It lets you define locale message catalogs, translate strings with the $t/t helpers, and localize dates, numbers, and currencies through the native Intl APIs.
It ships two API styles: a Composition API centered on useI18n() for <script setup> components, and a Legacy API that mirrors Vue I18n v8 for easier migration. Built on the Intlify message-compiler and core runtime, it supports named and list interpolation, linked messages, pluralization rules, and precompiled message functions for production performance.
What You Get
- A Vue 3 plugin installed via
createI18nwith reactive locale switching - Composition API (
useI18n) and Legacy API ($t,$tc,$d,$n) surfaces - Message syntax with named/list interpolation, linked messages, and pluralization
- Locale-aware date, number, and currency formatting built on the Intl APIs
- Precompilable message functions and a CDN build for production use
Common Use Cases
- Localizing a Vue 3 single-page application into multiple languages
- Formatting dates, numbers, and currencies per the user’s active locale
- Handling pluralization and gendered/linked message variants across locales
- Migrating an existing Vue I18n v8 codebase to Vue 3 via the Legacy API
Under The Hood
Architecture - Vue I18n is a layered pnpm monorepo. At the base, @intlify/message-compiler parses the Intlify message syntax into an AST (ResourceNode -> MessageNode/PluralNode -> element nodes) and compiles it to message functions. @intlify/core-base provides the framework-agnostic runtime (translate, datetime, number, fallback-locale chaining). @intlify/vue-i18n-core builds the Vue integration on top: the Composer (packages/vue-i18n-core/src/composer.ts), the i18n instance and Vue plugin, and the <i18n-t>/<i18n-n>/<i18n-d> functional components. The public vue-i18n package (packages/vue-i18n/src/index.ts) is a thin entry re-exporting the core APIs plus feature-flag/dev initialization.
Tech Stack - Written in TypeScript (94% of the codebase) targeting Node >= 22, with Vue as a peer dependency. The build is driven by tsx scripts (scripts/build.ts) producing ESM, CommonJS, and global/CDN bundles; internal packages are wired through pnpm workspace protocol dependencies (workspace:*). Tooling includes Vitest for tests, oxlint plus ESLint for linting, Prettier/oxfmt for formatting, and a benchmark suite plus VitePress docs site.
Code Quality - The repo is thoroughly tested, with roughly 49 *.test.ts suites across packages plus a dedicated e2e/ directory and a formal message-syntax spec (spec/syntax.ebnf). Types are strict and exported extensively from the public entry, the message layer is benchmarked, and CI runs lint, type-aware checks, and tests. The consistent naming and clear package boundaries reflect a mature, well-maintained project.
API Design - The public API is deliberately ergonomic: createI18n for setup, the useI18n() composable for <script setup>, and the familiar t/d/n (plus “ legacy) helpers in templates. Offering both a Composition API and a v8-compatible Legacy API smooths migration, and the documentation site, examples directory, and CodeSandbox playground make onboarding straightforward for teams already comfortable with Vue.
Used by 25 apps in this directory
1Panel
Devops · Hosting Control Panel · Monitoring
The only open-source VPS control panel with native AI agent runtime — deploy websites, Docker stacks, and local LLMs from one web interface.
Another Redis Desktop Manager
Developer Tools · Databases
Fast, stable Redis GUI with cluster, SSH, and massive key support
BillaBear
Ecommerce · Invoicing Finance
Self-hostable subscription management and billing platform with Stripe integration, tax automation, configurable workflows, and Twig-based document generation.
BillionMail
Marketing
Self-hosted email server and marketing platform that gives you unlimited sending, full deliverability control, and AI-assisted campaigns without monthly fees.
Chatwoot
Customer Support
Open-source omnichannel customer support platform with AI-powered agents, live chat, and self-hosting — a full Intercom and Zendesk alternative.
Crater
Invoicing Finance
Open source invoicing and billing platform for freelancers and small businesses — create estimates, track expenses, accept Stripe payments, and run recurring invoices from your own server.
DataEase
Analytics · Data Engineering · AI Assistants
Open-source BI tool with drag-and-drop dashboards, 20+ data source connectors, and AI-powered natural language queries — a self-hosted alternative to Tableau.
Directus
CMS · Low Code Platforms
Connect any SQL database and get instant REST and GraphQL APIs, a visual management Studio, and a native MCP server for AI agents — free for most organizations.
ezBookkeeping
Invoicing Finance
Lightweight self-hosted personal finance manager with AI receipt scanning, multi-currency support, and MCP integration for complete data privacy.