add Ox.getLocale

This commit is contained in:
rolux 2013-05-09 21:20:09 +02:00
parent 8aef1fb7c0
commit 7f6bb6a318

View file

@ -4,6 +4,14 @@
var log, translations = {}; var log, translations = {};
/*@
Ox.getLocale <f> Returns locale
() -> <s> Locale (like 'de' or 'fr')
@*/
Ox.getLocale = function() {
return Ox.LOCALE;
};
/*@ /*@
Ox.setLocale <f> Sets locale Ox.setLocale <f> Sets locale
(locale[, url], callback) (locale[, url], callback)