I work with:
OS X El Capitan 10.11.5
XCode 8.2.1
Swift 3.0
I have two Localizable.strings files (English and Spanish) in my project that work perfect. This files are in their respective folders:
- en.lproj
- es.lproj
For some reason git doesn't recognize these two Localizable.strings files when I commit changes in my project.
I made a test changing the extension from *.strings to *.txt and it was recognized instantly by git as a change available to be commited.
I tried some "solutions" I found but they don't work at all:
- Added a file named
.gitattributes
with the following text in it:*.strings diff=localizablestrings
- In the file
config
in the folder.git
I added the following code:
[diff "localizablestrings"]
textconv = "iconv -f utf-16 -t utf-8"
Nothing made git recognize my Localizable.strings. May you please help me find what am I missing? Thank you.