From 8ed3964dc077f628ac7588da9d922098dc75450a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 27 Dec 2013 10:29:07 +0000 Subject: [PATCH] fix loading locale --- source/Ox/js/Locale.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox/js/Locale.js b/source/Ox/js/Locale.js index df0de2ac..0771bc55 100644 --- a/source/Ox/js/Locale.js +++ b/source/Ox/js/Locale.js @@ -48,8 +48,8 @@ urls.push(Ox.makeArray(value)); }); Ox.getJSON(urls, function(data) { - urls.forEach(function(url) { - Ox.extend(translations, data[url]); + Ox.forEach(data, function(values, url) { + Ox.extend(translations, values); }); callback(true); });