Search code examples
react-nativeinternationalizationwebstormhardcoded

Finding hardcoded string in React Native (using WebStorm)


My project has a lot of hardcoded strings and they are creating a mess in translating the project.

I read about that WebStorm's inspection can find them, but I didn't find any such option in internationalization of WebStorm's code inspect. Is it hidden somewhere or are any other ways to do this?


Solution

  • Java | Internationalization | Hard coded strings inspection is only available for Java, there is no such inspection for TypeScript/JavaScript.

    You can try a third-party i18n support plugin - it provides a basic support for javascript internationalization; see if it works for you