Warm tip: This article is reproduced from serverfault.com, please click

Finding hardcoded string in React Native (using WebStorm)

发布于 2020-12-02 07:25:43

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?

Questioner
CoderNoob
Viewed
0
lena 2020-12-02 23:21:20

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