vendor/willdurand/js-translation-bundle/Resources/js/translator.js
(开头部分) 1KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**
* @author William DURAND <william.durand1@gmail.com>
* @license MIT Licensed
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define('Translator', factory);
}
else if (typeof module === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory();
}
else {
root.Translator = factory();
}
}(this, function () {
"use strict";
var _messages = {},
_fallbackLocale = 'en',
_domains = [],
_sPluralRegex = new RegExp(/^\w+\: +(.+)$/),
_cPluralRegex = new RegExp(/^\s*((\{\s*(\-?\d+[\s*,\s*\-?\d+]*)\s*\})|([\[\]])\s*(-Inf|\-?\d+)\s*,\s*(\+?Inf|\-?\d+)\s*([\[\]]))\s?(.+?)$/),
_iPluralRegex = new RegExp(/^\s*(\{\s*(\-?\d+[\s*,\s*\-?\d+]*)\s*\})|([\[\]])\s*(-Inf|\-?\d+)\s*,\s*(\+?Inf|\-?\d+)\s*([\[\]])/);
var Translator = {
/**
* The current locale.
*
* @type {String}
* @api public
*/
locale: get_current_locale(),
/**
* Fallback locale.
*
* @type {String}
* @api public
*/
fallback: _fallbackLocale,
/**
* Placeholder prefix.
*
* @type {String}
* @api public
*/
placeHolderPrefix: '%',
/**
* Placeholder suffix.
*
* @type {String}
* @api public
*/
placeHolderSuffix: '%',
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。