mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-06 11:21:33 +00:00
fallback to less general local, de-de to de
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user