We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const i18n = createI18n({ locale: "en", // set locale fallbackLocale: "en", // set fallback locale messages, // set locale messages legacy: false, });
It works fine in template, but I cannot how to use in option api like in methods. I have tried this.$i18n.t this.$i18n.$t $t,does not work
this.$i18n.t
this.$i18n.$t
$t
use like in template $t('message.key')
no
vue-i18n: 9 => 9.8.0
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reporting a bug?
const i18n = createI18n({
locale: "en", // set locale
fallbackLocale: "en", // set fallback locale
messages, // set locale messages
legacy: false,
});
It works fine in template, but I cannot how to use in option api like in methods.
I have tried
this.$i18n.t
this.$i18n.$t
$t
,does not workExpected behavior
use like in template $t('message.key')
Reproduction
no
System Info
vue-i18n: 9 => 9.8.0
Screenshot
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: