From 69d8270d1becb2f49f67aafef4aa8d521177f60f Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Mon, 25 Feb 2013 11:57:38 -0500 Subject: [PATCH] fallback to less general local, de-de to de --- js/lib/locale.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/lib/locale.js b/js/lib/locale.js index 8582df03e..ae56d26c6 100644 --- a/js/lib/locale.js +++ b/js/lib/locale.js @@ -3,6 +3,7 @@ var locale = { _current: 'en' }; locale.current = function(_) { if (!arguments.length) return locale._current; if (locale[_] !== undefined) locale._current = _; + else if (locale[_.split('-')[0]]) locale._current = _.split('-')[0]; return locale; };