Lint: How to ignore “ is not translated in ” errors?

后端 未结 13 1972
长情又很酷
长情又很酷 2020-11-27 10:46

I can\'t compile/debug our Android app, because the localization files are not perfect yet.

My IDE\'s validation tool Lint create errors saying:

13条回答
  •  迷失自我
    2020-11-27 11:00

    Another approach is to indicate the languages you intend to support and filter out the rest using the 'resConfigs' option with Gradle.

    Check out this other answer for details

    This is better, I think, because you don't have to completely ignore legitimate translation mistakes for languages you actually want to support

提交回复
热议问题