In Android Studio the debug build compiles and runs without any problems. When we do a release build on our build machine however, it fails the build because of translation strings that are missing.
Log gives
strings.xml:30: Error: "OrderFilterHint" is not translated in "es" (Spanish), "pt" (Portuguese) [MissingTranslation]
I want these errors to appear on debug builds so developers can pick it up before breaking the release build.
I have tried editing lint.xml
to this:
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue id="MissingTranslation" severity="error" />
</lint>
and adding the following to my build.gradle
android {
...
lintOptions {
checkReleaseBuilds true
enable 'MissingTranslation'
}
}
None of the above seems to have helped.
How can I force the MissingTranslation
lint check to fail my debug builds?