in setLocale, allow for setting the locale to the current locale (in order to include additional module locale files)
This commit is contained in:
parent
54c8871559
commit
9c66eced09
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@
|
|||
callback(true);
|
||||
} else {
|
||||
Ox.forEach(Ox.LOCALES, function(locales, module) {
|
||||
if (Ox.contains(locales, locale)) {
|
||||
if (Ox[module] && Ox.contains(locales, locale)) {
|
||||
urls.push([
|
||||
Ox.PATH + 'Ox' + (module ? '.' + module : '')
|
||||
+ '/json/locale.' + locale + '.json'
|
||||
|
|
Loading…
Reference in a new issue