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
What's the right way to use ttag with vue templates? Would be useful to be able to just
<template> {{ t`Hello World!` }} </template>
But for now .vue files are not even taken to consideration.
.vue
The text was updated successfully, but these errors were encountered:
Hi @dy, .vue files were added recently to ttag-cli ttag-org/ttag-cli#93. @eavae probably can help here, because I haven't used ttag and vue still.
Sorry, something went wrong.
Ok, I see @eavae's method, it implies passing all strings as data:
<template> <div id="app"> <p>{{ messageHello }}</p> </div> </template> <script> import { t } from "ttag"; export default { data() { return { messageHello: t`Hello World` }; } }; </script>
which is a bit of overhead, similar to vue-i18n:
<template> <div id="app"> <p>{{ $t("message.hello") }}</p> </div> </template>
I wonder if there's a way to make vue + ttag as natural as just
<template> <div id="app"> <p>{{ t`String to translate` }}</p> </div> </template>
<template>
No branches or pull requests
What's the right way to use ttag with vue templates?
Would be useful to be able to just
But for now
.vue
files are not even taken to consideration.The text was updated successfully, but these errors were encountered: