Qint (Quasar internationalization) is a library that facilitates the i18n of Quasar apps. Qint extends Vint.
The app extension Int is the easiest way to install and get started.
yarn add vue-i18n@next
yarn add @pyxo/qint
# or
npm install vue-i18n@next
npm install @pyxo/qint
Add Wint/Vint/Qint packages to quasar.conf.js > build > transpileDependencies
:
- // transpileDependencies: [],
+ transpileDependencies: [/@pyxo\/(w|v|q)int/],
- SSR support.
- Supports different URL modes: prefix (example.com/en), subdomain (en.example.com), host (example.co.uk), search-param (example.com?l=en), none (example.com)
- Supports the use of a language tag cookie.
- Can make use of the user's client language preferences (e.g. browser settings).
- Support for
hreflang
link tags. - Lazy loading of Quasar language packs and
vue-i18n
locale messages. - Language tags, Qint uses the term "language tag" to denote a language or a locale, and recommends the use of BCP 47 language tags.
API docs: qint.pyxo.net/api
Repository: github.com/pyxo-dev/qint
Contributions are welcome!