Replies: 1 comment
-
We don't provide this as a first-class feature, but we have a way to do this internally for our own default translations:
You can take inspiration from our code here: Note that although we recommend using static strings for translation ids, you can also use dynamic onces in practice, using data coming from an external source for example. For this reason we can't reliably extract 100% of the actual translation ids of a codebase, and can't 100% reliably know for sure that a translation is not used. We might know a translation is not used statically, but it might be used dynamically, and if we report if, it can be a false positive report. For example: <Translate id={`users.${username}`>Username</Translate> We can't tell if |
Beta Was this translation helpful? Give feedback.
-
Is there an automated method for removing unused translation JSON entries?
Beta Was this translation helpful? Give feedback.
All reactions