Is there a way to colocate the translation files with my React components? #2034
Answered
by
jamuhl
npearson72
asked this question in
Q&A
-
Similar to css modules, tests, ect... I'd like to add my locale files next to my React components. Imagine some deeply nested directory:
This would be consistent with the general benefits of colocation, and would reduce the complexity of name spacing, key prefixes, general organizational concerns, ects. Is this already possible but I've missed it in the docs? If not, has anyone jerry rigged their own similar solution? |
Beta Was this translation helpful? Give feedback.
Answered by
jamuhl
Sep 14, 2023
Replies: 1 comment 2 replies
-
not supported from our modules - but that request was also requested by others -> you should be able to find a solution in already closed issues: eg. i18next/react-i18next#299 (comment) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
npearson72
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not supported from our modules - but that request was also requested by others -> you should be able to find a solution in already closed issues: eg. i18next/react-i18next#299 (comment)