Last active
October 23, 2023 00:51
-
-
Save obfusk/1bccbe38d14b56dc0c63878144c6d8ce to your computer and use it in GitHub Desktop.
diff locales for catima
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
diff -Naur \ | |
<( sed -n '/name="locale_values"/,/string-array/p' < app/src/main/res/values/settings.xml \ | |
| grep '<item>' | sed -r 's!.*>(.*)<.*!\1!' | sort | grep -v '^en$' ) \ | |
<( ls app/src/main/res/values-* -d | sed 's!.*values-!!' | grep -Ev 'night|w600dp' ) \ | |
| bat -p -l diff |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment