fluent-vue
Internationalization plugin for Vue.js
fluent-vue is a Vue.js integration for Fluent.js - JavaScript implementation of Mozilla's Project Fluent
🚀 Features
- Simple api for developers: Just 2 methods, 1 directive and 1 component
- Powerfull syntax for translators: Use the entire expressive power of every language without need for changes to application source code
- Isolation: Locale-specific logic doesn't leak to other locales. A simple string in English can map to a complex multi-variant translation in another language
- Seamless migration: Works for both Vue 3 and 2
- No bundler required: Usable via CDN
🎉 Example
<template>
<div>
<div>{{ $t('hello-user', { userName }) }}</div>
<div>{{ $t('shared-photos', { userName, photoCount, userGender }) }}</div>
</div>
</template>
<fluent locale="en">
# Simple things are simple.
hello-user = Hello, {$userName}!
# Complex things are possible.
shared-photos =
{$userName} {$photoCount ->
[one] added one photo
*[other] added {$photoCount} new photos
} to {$userGender ->
[male] his stream
[female] her stream
*[other] their stream
}.
</fluent>
📖 Documentation
Documentation can be found here: https://fluent-vue.demivan.me
Examples for different Vue.js versions and build systems can be found here.
📦 Packages
This repository is a monorepo managed with pnpm workspaces.
| Package | NPM | Source |
|---|---|---|
| fluent-vue | packages/fluent-vue | |
| unplugin-fluent-vue | packages/unplugin-fluent-vue |
🛠️ Development
pnpm install
pnpm build
pnpm test
pnpm typecheck
📄 License
MIT License © 2020 Ivan Demchuk
Related Packages
@dialpad/i18n
Internationalization library for Vue 3 apps using Mozilla's Fluent syntax, with...
10,073
@mylukin/easy-i18n-js
Framework-agnostic i18n extraction tool with plugin support for Svelte, Vue, and...
5,836
0
Version History
| Version | Released | License |
|---|---|---|
| 3.8.2 | MIT | |
| 3.8.1 | MIT | |
| 3.8.0 | MIT | |
| 3.7.5 | MIT | |
| 3.7.4 | MIT | |
| 3.7.3 | MIT | |
| 3.7.2 | MIT | |
| 3.7.1 | MIT | |
| 3.7.0 | MIT | |
| 3.6.0 | MIT | |
| 3.5.2 | MIT | |
| 3.5.1 | MIT | |
| 3.5.0 | MIT | |
| 3.4.0 | MIT | |
| 3.3.0 | MIT | |
| 3.2.1 | MIT | |
| 3.2.0 | MIT | |
| 3.1.4 | MIT | |
| 3.1.3 | MIT | |
| 3.1.2 | MIT | |
| 3.1.1 | MIT | |
| 3.1.0 | MIT | |
| 3.0.3 | MIT | |
| 3.0.2 | MIT | |
| 3.0.1 | MIT | |
| 3.0.0 | MIT | |
| 2.4.5 | MIT | |
| 2.4.4 | MIT | |
| 2.4.3 | MIT | |
| 2.4.2 | MIT |
Showing the latest 30 of 41. See every release on npm
Pre-releases (31)
| Version | Released | License |
|---|---|---|
| 3.7.5-0 | MIT | |
| 3.7.2-0 | MIT | |
| 3.4.0-1 | MIT | |
| 3.4.0-0 | MIT | |
| 3.0.0-beta.20 | MIT | |
| 3.0.0-beta.19 | MIT | |
| 3.0.0-beta.18 | MIT | |
| 3.0.0-beta.17 | MIT | |
| 3.0.0-beta.16 | MIT | |
| 3.0.0-beta.15 | MIT | |
| 3.0.0-beta.14 | MIT | |
| 3.0.0-beta.13 | MIT | |
| 3.0.0-beta.12 | MIT | |
| 3.0.0-beta.11 | MIT | |
| 3.0.0-beta.10 | MIT | |
| 3.0.0-beta.9 | MIT | |
| 3.0.0-beta.8 | MIT | |
| 3.0.0-beta.7 | MIT | |
| 3.0.0-beta.6 | MIT | |
| 3.0.0-beta.5 | MIT | |
| 3.0.0-beta.4 | MIT | |
| 3.0.0-beta.3 | MIT | |
| 3.0.0-beta.2 | MIT | |
| 3.0.0-beta.1 | MIT | |
| 3.0.0-beta.0 | MIT | |
| 3.0.0-alpha.3 | MIT | |
| 3.0.0-alpha.2 | MIT | |
| 3.0.0-alpha.1 | MIT | |
| 3.0.0-alpha.0 | MIT | |
| 3.0.0-SNAPSHOT.2 | MIT |
Showing the latest 30 of 31. See every release on npm