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
A common pattern I have when using this fantastic package is:
const key = 'key.path'; const localized = te(key) ? t(key) : 'Fallback Translation';
This is cumbersome to do over and over again.
It would be nice if a composable could be provided which did that by allowed me to do:
const localized = localize( 'key.path', 'Fallback Translation' );
localize would look like:
function localize( key, fallback ) { return te(key) ? t(key) : fallback; }
Then, having a related v-localize directive would be useful....
v-localize
<div v-localize="{ key: 'key.path', fallback: 'Fallback Translation' }" />
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Clear and concise description of the problem
A common pattern I have when using this fantastic package is:
This is cumbersome to do over and over again.
Suggested solution
It would be nice if a composable could be provided which did that by allowed me to do:
localize would look like:
Then, having a related
v-localize
directive would be useful....Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: