[ide extension api] add namespace api to ease extraction #2021
Unanswered
NilsJacobsen
asked this question in
[inlang SDK] Feature Requests
Replies: 1 comment
-
Sounds reasonable, let's wait until more people have this requirement. @NilsJacobsen Also, which data do you need at what point of time – can you outline an API? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
Translations are automatically prefixed with a namespace (i18next + next-intl) that works great, but when i extract a new string the namespace does not automatically added so the translation will end up in the wrong place. When I try to fix it by adding the namespace manually during extraction it gets placed correctly, but now we have a double prefix.
Possible Solution
Pro: Easy support for namespaces extraction
Cons: We bring more opinionated namespaces into the game that are handled differently by libraries.
Possible fix for cons
Curious what you think guys. @felixhaeberle
Beta Was this translation helpful? Give feedback.
All reactions