From 7f6bb6a31872dc320903a6f0bf2604d781d7ac34 Mon Sep 17 00:00:00 2001 From: rolux Date: Thu, 9 May 2013 21:20:09 +0200 Subject: [PATCH] add Ox.getLocale --- source/Ox/js/Locale.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/Ox/js/Locale.js b/source/Ox/js/Locale.js index 4389178f..9895fd3f 100644 --- a/source/Ox/js/Locale.js +++ b/source/Ox/js/Locale.js @@ -4,6 +4,14 @@ var log, translations = {}; + /*@ + Ox.getLocale Returns locale + () -> Locale (like 'de' or 'fr') + @*/ + Ox.getLocale = function() { + return Ox.LOCALE; + }; + /*@ Ox.setLocale Sets locale (locale[, url], callback)