Skip to content
New issue

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

i want to make same shortcut #1683

Open
3 tasks done
JSeasy opened this issue Jan 8, 2024 · 0 comments
Open
3 tasks done

i want to make same shortcut #1683

JSeasy opened this issue Jan 8, 2024 · 0 comments
Labels
Status: Proposal Request for comments

Comments

@JSeasy
Copy link

JSeasy commented Jan 8, 2024

Clear and concise description of the problem

i has a en.json, it just like {pageA:{a:1,b:1},pageB:{a:1,b:1}}
now i want to use $t in the pageA but it is very ugly becuse i must write $('pageA.a') every time
is there has same way to make the $t has a pageA scoped and i can use the $t('a')

Suggested solution

const $t = useI18n({
scoped:'pageA'
})

and i can use $t('a') in the template

Alternative

No response

Additional context

No response

Validations

@JSeasy JSeasy added the Status: Proposal Request for comments label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Proposal Request for comments
Projects
None yet
Development

No branches or pull requests

1 participant