Vue I18n for Vue 3
MIT License
Bot releases are hidden (Show)
Published by kazupon about 4 years ago
Published by kazupon about 4 years ago
Published by kazupon about 4 years ago
Published by kazupon about 4 years ago
Published by kazupon over 4 years ago
Published by kazupon over 4 years ago
Published by kazupon over 4 years ago
Published by kazupon over 4 years ago
Published by kazupon over 4 years ago
Published by kazupon over 4 years ago
Published by kazupon over 4 years ago
Published by kazupon over 4 years ago
i18n-t
(In v8.x, it was called i18n
component as Component interpolation feature) (@kazupon)Published by kazupon over 4 years ago
New style API for Vue 3. See the following docs:
See the examples
directory.
The examples are offered that use the following two API styles:
$t
and t
methods is string only. object and array values are no longer returned.$tc
and tc
methods is string only. object and array values are no longer returned.VueI18n
class cannot used with new
. It can only be used via the $i18n
property of Vue instance.
new VueI18n
with createI18n
, you can use existing VueI18n
options as they are.examples/legacy
directory.VueI18n.prototype.getChoiceIndex
pluralizationRules
option of createI18n
factory function (like new VueI18n(...)
)pluralRules
option of createI18nComposer
facatory functionVueI18n.version
-> import { VERSION } from 'vue-i18n'
VueI18n.availabilities
-> import { availabilities } from 'vue-i18n'
Status: Ready
fallbackLocale
or fallbackLocales
(related vue-i18n issue)<i18n>
custom block supporting for SFCv-t
directivepreserveDirectiveContent
option (depend on v-t
)<i18n>
component<i18n-n>
componentwarnHtmlInMessage
optionvue-cli-plugin-i18n
@intlify/vue-i18n-loader
@intlify/rollup-plugin-vue-i18n
@intlify/vue-i18n-extensions
@intlify/eslint-plugin-vue-i18n
npm install --save vue-i18n@next
yarn add vue-i18n@next