Open
Description
Clear and concise description of the problem
In the setup component of Vue 3, I use the useI18n
method to return the t
method. I found that this method only provides type hints for local resources, but it doesn't provide type hints for resources set globally. For example, in the following code:
const {t} = use_local({
messages: {
zh: {
title: '<UNK>',
},
en: {
title: "EN"
}
}
});
Here, when calling t
, it only suggests "title", but in fact, there are some fields in the global resources that are not suggested. Is this a feature that has not yet been implemented?
Suggested solution
It is expected to merge the types of local resources and global resources for type hints.
Alternative
No response
Additional context
No response
Validations
- Read the Contributing Guidelines
- Read the Documentation
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.