Skip to content

Instantly share code, notes, and snippets.

View mmdock's full-sized avatar

Morgan Dock mmdock

  • Dattch
  • San Francisco, CA
View GitHub Profile
@mmdock
mmdock / difflocal.py
Created March 21, 2019 19:11
Script to help me compare two .strings files. Use during Xcode build phase to ensure localizations contain all keys
#!/usr/bin/env python
import codecs
import optparse
import os
import re
"""
This small script compares Cocoa / iOS development Localizable.strings files.
These are usually UTF-16 and difficult to compare. In addition to that,
the order of the contents of the files varies per export, making diff very