Skip to content

Instantly share code, notes, and snippets.

@kpykc
Forked from sprhawk/gist:2779208
Last active August 29, 2015 14:25
Show Gist options
  • Save kpykc/89c3b79245c67f91a3af to your computer and use it in GitHub Desktop.
Save kpykc/89c3b79245c67f91a3af to your computer and use it in GitHub Desktop.
(from :http://www.entropy.ch/blog/Developer/2010/04/15/Git-diff-for-Localizable-strings-Files.html)
First, add this to the project’s .git/info/attributes file:
+
*.strings diff=localizablestrings
(Unfortunately you do have to add it to every project, there doesn’t seem to be a global attributes configuration file)
Second, add this to your ~/.gitconfig file:
+
[diff "localizablestrings"]
textconv = "iconv -f utf-16 -t utf-8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment