Index: packagerChrome.py |
diff --git a/packagerChrome.py b/packagerChrome.py |
index f9776069e51b47fdbd4df0525eb92493c4449b50..fb5ed31f0c017844d2243fc76e32136307422fc2 100644 |
--- a/packagerChrome.py |
+++ b/packagerChrome.py |
@@ -209,9 +209,10 @@ def create_bundles(params, files): |
def import_locales(params, files): |
for item in params['metadata'].items('import_locales'): |
- filename, keys = item |
+ filename = item[0] |
Sebastian Noack
2017/10/25 15:08:33
Nit: This temporary variable isnt necessary.
Wladimir Palant
2017/10/25 15:11:48
But helpful to make the code more readable. Otherw
|
for sourceFile in glob.glob(os.path.join(os.path.dirname(item.source), |
*filename.split('/'))): |
+ keys = item[1] |
locale = sourceFile.split(os.path.sep)[-2] |
targetFile = os.path.join('_locales', locale, 'messages.json') |
data = json.loads(files.get(targetFile, '{}').decode('utf-8')) |