vue-i18n

The internationalization plugin that brings translations, pluralization, and locale-aware formatting to Vue.js 3 apps.

Library
npm
v11.4.12
2,713 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
91 /100 Excellent
Development Activity 96
Maintenance 100
Community 68
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
89 /100 Excellent
Architecture 90
Code Quality 90
Innovation 88
Learning Curve 70

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 createI18n with 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 26 apps in this directory

Go
73%
GPL 3.0

1Panel

Devops · Hosting Control Panel · Monitoring

37,044

The only open-source VPS control panel with native AI agent runtime — deploy websites, Docker stacks, and local LLMs from one web interface.

View details
91
Repo Health
76
Technical
67
Dependency
Built with
Go 73%
Vue 27%
Updated 1 weeks ago
JavaScript
94%
MIT

Another Redis Desktop Manager

Databases · Developer Tools

34,787

Fast, stable Redis GUI with cluster, SSH, and massive key support

View details
81
Repo Health
56
Technical
67
Dependency
Built with
JavaScript 94%
Updated 1 months ago
PHP
63%
Other

BillaBear

Ecommerce · Invoicing Finance

761

Self-hostable subscription management and billing platform with Stripe integration, tax automation, configurable workflows, and Twig-based document generation.

View details
76
Repo Health
66
Technical
65
Dependency
Built with
PHP 63%
Vue 18%
Gherkin 13%
Updated 3 weeks ago
Go
92%
AGPL 3.0

BillionMail

Marketing

15,695

Self-hosted email server and marketing platform that gives you unlimited sending, full deliverability control, and AI-assisted campaigns without monthly fees.

View details
52
Repo Health
74
Technical
70
Dependency
Built with
Go 92%
Updated 4 months ago
Ruby
50%
Other

Chatwoot

Customer Support

37,254

Open-source omnichannel customer support platform with AI-powered agents, live chat, and self-hosting — a full Intercom and Zendesk alternative.

View details
95
Repo Health
78
Technical
69
Dependency
Built with
Ruby 50%
Vue 25%
JavaScript 22%
Updated 1 weeks ago
PHP
48%
AGPL 3.0

Crater

Invoicing Finance

8,349

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.

View details
54
Repo Health
68
Technical
68
Dependency
Built with
PHP 48%
Vue 40%
Updated 2 years ago
Java
70%
GPL 3.0

DataEase

AI Assistants · Analytics · Data Engineering

24,558

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.

View details
94
Repo Health
71
Technical
65
Dependency
Built with
Java 70%
Vue 29%
Updated 1 weeks ago
TypeScript
79%
Other

Directus

CMS · Low Code Platforms

37,987

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.

View details
92
Repo Health
82
Technical
76
Dependency
Built with
TypeScript 79%
Vue 19%
Updated 2 weeks ago
Go
37%
MIT

ezBookkeeping

Invoicing Finance

5,673

Lightweight self-hosted personal finance manager with AI receipt scanning, multi-currency support, and MCP integration for complete data privacy.

View details
88
Repo Health
80
Technical
71
Dependency
Built with
Go 37%
Vue 34%
TypeScript 26%
Updated 1 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers