QuiiBz / next-international

Type-safe internationalization (i18n) for Next.js
https://next-international.vercel.app
MIT License
1.28k stars 59 forks source link

How to use translation outside of components? I have some special circumstances where I need to use translation outside of the component. Is there a compatible method to use translation outside of the component? Although it is troublesome and terrible, I still need to consider this situation. #334

Closed hqw567 closed 8 months ago

hqw567 commented 8 months ago

Related Discussions:https://github.com/amannn/next-intl/discussions/729

damianricobelli commented 8 months ago

@hqw567 Could you show us an example of the use case you are facing so we can understand a bit more?

Maybe what you need is to use the next-international core to build your own i18n type-safe function? --> https://github.com/QuiiBz/next-international/tree/main/packages/international-types

@QuiiBz if my suggestion is not correct, please let me know