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
Is there any special configuration that's needed to get this behavior?
After extracting, the plugin reports:
ERROR: 'RootLayout.new-message' not found in source with language tag 'en'
If I manually move the new message to the correct namespace in the JSON, the plugin detects this properly and displays it as it should, it's just the extraction that doesn't work.
The text was updated successfully, but these errors were encountered:
Yeah tricky. Sherlock has no concept of a namespace.
The implementation of matching a message like RootLayout.new-message happens via the next-intl plugin. Extending the next-intl plugin to report a namespace for a given file as well as adding an onExtract callback to Sherlock could be a solution.
When extracting a string in a project with
next-intl
, it isn't saved to the file with the namespace nesting which is defined in the source file:Instead of ending up in as:
it ends up as:
Is there any special configuration that's needed to get this behavior?
After extracting, the plugin reports:
If I manually move the new message to the correct namespace in the JSON, the plugin detects this properly and displays it as it should, it's just the extraction that doesn't work.
The text was updated successfully, but these errors were encountered: