epicmaxco / vuestic-ui

Free and Open Source UI Library for Vue 3 🤘
https://vuestic.dev
MIT License
3.31k stars 321 forks source link

feat(i18n): try to resolve $t from vue global properties #4244

Open m0ksem opened 2 weeks ago

m0ksem commented 2 weeks ago

Beside our custom config, let's try to resolve $t from getCurrentInstance() global properties. If $t is preset, try to resolve key like vuestic:${key}.

Add this feature to docs. This is much easier way to work with i18n.

In case if $t is not found, use the same approach we use rn.