You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin is not able to extract these keys and tells me to:
babel-plugin-i18next-extract: Extraction error in /src/auth/components/restore-password-form.tsx at line 70. Couldn't evaluate i18next key. You should either make the key evaluable or skip the
line using a skip comment (/* i18next-extract-disable-line */ or /* i18next-extract-disable-next-line */).
Describe the solution you'd like
It would be nice to have a comment hint to manually register specific phrases unrelated to t calls.
For example the above enum could look something like:
Workaround is to copy the values and create a component containing only string literals to register the phrases explicitly but then the registration of phrases is separated from their definition which is cumbersome.
Is your feature request related to a problem? Please describe.
I am using typescript and enums for some shared error messages so for example for forms I would use:
And in my component I reference it using:
The plugin is not able to extract these keys and tells me to:
Describe the solution you'd like
It would be nice to have a comment hint to manually register specific phrases unrelated to
t
calls.For example the above enum could look something like:
Describe alternatives you've considered
Workaround is to copy the values and create a component containing only string literals to register the phrases explicitly but then the registration of phrases is separated from their definition which is cumbersome.
The text was updated successfully, but these errors were encountered: