Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable Android Studio spell checking on language specific strings.xml files

In Android Studio, spellchecking seems to be disabled for language specific strings.xml files (and I understand why it would be disabled by default).

But is it possible to enable it, to check values, for a couple of those files? ("fr/strings.xml" for example), or at least run it on demand.

like image 213
mVck Avatar asked Feb 15 '17 14:02

mVck


1 Answers

To avoid or to enforce spellchecking you could add tools:locale to the <resources> tag in your string xml.

<resources xmlns:tools="http://schemas.android.com/tools" tools:locale="en">

This tells Lint your resources' locale.

Source

like image 177
Sebastian Avatar answered Oct 13 '22 01:10

Sebastian