This file contains hidden or 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
| #!/usr/bin/env python3 | |
| from collections import namedtuple | |
| import os | |
| import shutil | |
| import re | |
| import json | |
| import argparse | |
| import sys |
This file contains hidden or 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
| import Foundation | |
| private class Localizer { | |
| static let sharedInstance = Localizer() | |
| lazy var localizableDictionary: NSDictionary! = { | |
| if let path = Bundle.main.path(forResource: "Localizable", ofType: "plist") { | |
| return NSDictionary(contentsOfFile: path) | |
| } |