Translate constant file #2094
Closed
AndonMitev
started this conversation in
General
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello i've read other articles and resources but feel like i'am failing to do it:
So
i18n
withuseTranslation()
is working in components all good. But now i do have constant file and i'am using it as:also tried with:
import i18n from "i18next"
but still not working, this my i18n config:any ideas if i'm missing something or so?
PS: If i update constant to function like this:
is working tho, but is it possible to make it work without converting constant to a function
Beta Was this translation helpful? Give feedback.
All reactions