martinkr/next-export-i18n

How can I use Translation outside Hook?

Chhunneng opened this issue · 2 comments

I want to translate my JS file but it's not a component file.

Hi @Chhunneng,

Thank you for reaching out. Unfortunately, the package relies on the hook.
What is your use case, maybe we can find a solution.

Cheers!

I can pass t as param, it's okay.