Sweekly Apps

Android strings.xml and Apple .strings checker

Paste or open a strings file to see each string that may break the build or show the wrong text, with its line number. Add the default-language file too, and it also lists missing keys and format arguments that differ between the two.

1. The file to check

2. Optional: the default-language file, to compare

Everything runs in this page. Files are read by your browser and nothing you paste or open is sent anywhere or stored. It flags common problems; it can't guarantee your file will build or import cleanly. Test before you ship.

Escape one string

Type the text as it should appear in the app, and copy the line for your file.

The escaper treats the text as plain text: a < becomes &lt;. If you use styling tags such as <b>, add them after escaping.

What it checks

CheckAndroid strings.xmlApple .strings
Apostropheerror unless written \' or inside double quotesallowed as is
Double quotewarning unless written \" (a bare one is not shown)error unless written \" (it ends the string early)
Leading @ or ?error unless written \@, \? or a real reference such as @string/nameallowed as is
Bare & or <error: write &amp; or &lt;allowed as is
Line break typed in the filewarning: it becomes a space; write \nkept
Duplicate keyerrorwarning
Missing =, ; or closing quotenot applicableerror, with the line
Format argumentsseveral unnumbered arguments (%s %d) get a warning; with a default file, any argument that differs between the two is an error

The rules, from the source

More on the Android cases translators hit most: apostrophes, quotes, @ and ? in strings.xml.

Keep the strings in a sheet

i18n String Catalog is a Google Sheets add-on that keeps one row per key and one column per language, and exports Android strings.xml with these characters escaped for you. It also checks placeholders that differ from the source text, and imports and exports JSON, Flutter ARB and Apple String Catalogs (.xcstrings).

i18n String Catalog, by Sweekly Apps LLC