-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathL10n.js
More file actions
2 lines (2 loc) · 986 Bytes
/
L10n.js
File metadata and controls
2 lines (2 loc) · 986 Bytes
1
2
"use strict";(function(){function u(){var n=null;return typeof window!="undefined"?n=window:typeof global!="undefined"&&(n=global),n}function f(){var n=u();if(n==null)return null;var t=n.l10n;return typeof t=="undefined"?null:t}var g=" !ctx=";function l(n){if(n==null)return"";if(typeof n!="string")return n;var t=n.toLowerCase().indexOf(g);return t<0?n:n.substring(0,t)}function a(n,t){typeof t=="undefined"&&(t={});var e=f();if(e==null)return n;var r=e.Phrases[n],i;return typeof t.__count!="undefined"&&(i=e.ruleEvaluator(t.__count).toString()),typeof r!="undefined"&&(typeof i!="undefined"&&typeof r.r[i]!="undefined"?n=r.r[i]:n=r.r[0]),l(n)}function d(n,t){var r,i;if(typeof t=="undefined")return n;for(var e in t)t.hasOwnProperty(e)&&(n=n.split("$"+e+"$").join((i=(r=t[e])==null?void 0:r.toString())!=null?i:""));return n}function o(n,t){return d(a(n,t),t)}typeof window!="undefined"&&(window._s=o);typeof global!="undefined"&&(global._s=o);})();
//# sourceMappingURL=L10n.js.map