-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgettext-pythonic.min.js
6 lines (6 loc) · 1.78 KB
/
gettext-pythonic.min.js
1
2
3
4
5
6
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.gettext=e()}}(function(){return function e(n,r,t){function l(o,f){if(!r[o]){if(!n[o]){var a="function"==typeof require&&require;if(!f&&a)return a(o,!0);if(u)return u(o,!0);var i=new Error("Cannot find module '"+o+"'");throw i.code="MODULE_NOT_FOUND",i}var p=r[o]={exports:{}};n[o][0].call(p.exports,function(e){var r=n[o][1][e];return l(r?r:e)},p,p.exports,e,n,r,t)}return r[o].exports}for(var u="function"==typeof require&&require,o=0;o<t.length;o++)l(t[o]);return l}({1:[function(e,n,r){/*! gettext-pythonic v1.1.2
* <https://github.com/vphantom/gettext-pythonic>
* Copyright 2016 Stéphane Lavergne
* Free software under MIT License: <https://opensource.org/licenses/MIT> */
"use strict";var t={};t._formatRE=/%\{([^}]+)\}/g,t._pluralRE=/nplurals=(\d+);\s+plural=([^;]+);/,t._npluralsDef=2,t._pluralDef=function(e){return+(1!=Math.abs(e))},t._lang={},t._nplurals=t._npluralsDef,t._plural=t._pluralDef,t.ngettext=function(e,n,r,l){var u=e in t._lang?t._lang[e]||e:e;return"object"==typeof u?u=u[t._plural(r)+1]||u[1]||e:"string"==typeof n&&t._plural(r)&&(u=n),null!==l&&"object"==typeof l&&(u=u.replace(t._formatRE,function(e,n){return n in l?l[n]:""})),u},t.gettext=function(e,n){return t.ngettext(e,null,null,n)},t.load=function(e){var n=[];t._lang="object"==typeof e?e:{};try{n=t._lang[""]["plural-forms"].match(t._pluralRE),t._nplurals=n[1],t._plural=new Function("n","n = Math.abs(n); return +("+n[2]+")")}catch(r){t._nplurals=t._npluralsDef,t._plural=t._pluralDef}},n.exports=t},{}]},{},[1])(1)});
//# sourceMappingURL=gettext-pythonic.min.js.map