Files
galaxy/static/scripts/packed/i18n.js
T

1 line
1.2 KiB
JavaScript

(function(){var a=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;function d(e,h,g,f,i,j){if(h[e]){g.push(e);if(h[e]===true||h[e]===1){f.push(i+e+"/"+j)}}}function c(g,e,f,h,i){var j=h+e+"/"+i;if(require._fileExists(g.toUrl(j+".js"))){f.push(j)}}function b(g,f,e){var h;for(h in f){if(f.hasOwnProperty(h)&&(!g.hasOwnProperty(h)||e)){g[h]=f[h]}else{if(typeof f[h]==="object"){if(!g[h]&&f[h]){g[h]={}}b(g[h],f[h],e)}}}}define(["module"],function(e){var f=e.config?e.config():{};return{version:"2.0.4",load:function(g,s,r,k){k=k||{};if(k.locale){f.locale=k.locale}var q,n=a.exec(g),o=n[1],t=n[4],v=n[5],l=t.split("-"),h=[],u={},m,j,p="";if(n[5]){o=n[1];q=o+v}else{q=g;v=n[4];t=f.locale;if(!t){t=f.locale=typeof navigator==="undefined"?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()}l=t.split("-")}if(k.isBuild){h.push(q);c(s,"root",h,o,v);for(m=0;m<l.length;m++){j=l[m];p+=(p?"-":"")+j;c(s,p,h,o,v)}s(h,function(){r()})}else{s([q],function(x){var w=[],i;d("root",x,w,h,o,v);for(m=0;m<l.length;m++){i=l[m];p+=(p?"-":"")+i;d(p,x,w,h,o,v)}s(h,function(){var A,y,z;for(A=w.length-1;A>-1&&w[A];A--){z=w[A];y=x[z];if(y===true||y===1){y=s(o+z+"/"+v)}b(u,y)}r(u)})})}}}})}());