Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: i18n.js
config.plural_forms
[1000] Fix | Delete
);
[1001] Fix | Delete
[1002] Fix | Delete
if ( typeof pf !== 'function' ) {
[1003] Fix | Delete
plural = getPluralExpression(
[1004] Fix | Delete
config[ 'Plural-Forms' ] ||
[1005] Fix | Delete
config[ 'plural-forms' ] ||
[1006] Fix | Delete
// Ignore reason: As known, there's no way to document the empty
[1007] Fix | Delete
// string property on a key to guarantee this as metadata.
[1008] Fix | Delete
// @ts-ignore
[1009] Fix | Delete
config.plural_forms
[1010] Fix | Delete
);
[1011] Fix | Delete
[1012] Fix | Delete
pf = pluralForms( plural );
[1013] Fix | Delete
}
[1014] Fix | Delete
[1015] Fix | Delete
getPluralForm = this.pluralForms[ domain ] = pf;
[1016] Fix | Delete
}
[1017] Fix | Delete
[1018] Fix | Delete
return getPluralForm( n );
[1019] Fix | Delete
};
[1020] Fix | Delete
[1021] Fix | Delete
/**
[1022] Fix | Delete
* Translate a string.
[1023] Fix | Delete
*
[1024] Fix | Delete
* @param {string} domain Translation domain.
[1025] Fix | Delete
* @param {string|void} context Context distinguishing terms of the same name.
[1026] Fix | Delete
* @param {string} singular Primary key for translation lookup.
[1027] Fix | Delete
* @param {string=} plural Fallback value used for non-zero plural
[1028] Fix | Delete
* form index.
[1029] Fix | Delete
* @param {number=} n Value to use in calculating plural form.
[1030] Fix | Delete
*
[1031] Fix | Delete
* @return {string} Translated string.
[1032] Fix | Delete
*/
[1033] Fix | Delete
Tannin.prototype.dcnpgettext = function( domain, context, singular, plural, n ) {
[1034] Fix | Delete
var index, key, entry;
[1035] Fix | Delete
[1036] Fix | Delete
if ( n === undefined ) {
[1037] Fix | Delete
// Default to singular.
[1038] Fix | Delete
index = 0;
[1039] Fix | Delete
} else {
[1040] Fix | Delete
// Find index by evaluating plural form for value.
[1041] Fix | Delete
index = this.getPluralForm( domain, n );
[1042] Fix | Delete
}
[1043] Fix | Delete
[1044] Fix | Delete
key = singular;
[1045] Fix | Delete
[1046] Fix | Delete
// If provided, context is prepended to key with delimiter.
[1047] Fix | Delete
if ( context ) {
[1048] Fix | Delete
key = context + this.options.contextDelimiter + singular;
[1049] Fix | Delete
}
[1050] Fix | Delete
[1051] Fix | Delete
entry = this.data[ domain ][ key ];
[1052] Fix | Delete
[1053] Fix | Delete
// Verify not only that entry exists, but that the intended index is within
[1054] Fix | Delete
// range and non-empty.
[1055] Fix | Delete
if ( entry && entry[ index ] ) {
[1056] Fix | Delete
return entry[ index ];
[1057] Fix | Delete
}
[1058] Fix | Delete
[1059] Fix | Delete
if ( this.options.onMissingKey ) {
[1060] Fix | Delete
this.options.onMissingKey( singular, domain );
[1061] Fix | Delete
}
[1062] Fix | Delete
[1063] Fix | Delete
// If entry not found, fall back to singular vs. plural with zero index
[1064] Fix | Delete
// representing the singular value.
[1065] Fix | Delete
return index === 0 ? singular : plural;
[1066] Fix | Delete
};
[1067] Fix | Delete
[1068] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/i18n/build-module/create-i18n.js
[1069] Fix | Delete
[1070] Fix | Delete
[1071] Fix | Delete
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
[1072] Fix | Delete
[1073] Fix | Delete
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(defineProperty["a" /* default */])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[1074] Fix | Delete
[1075] Fix | Delete
/**
[1076] Fix | Delete
* External dependencies
[1077] Fix | Delete
*/
[1078] Fix | Delete
[1079] Fix | Delete
/**
[1080] Fix | Delete
* @typedef {Record<string,any>} LocaleData
[1081] Fix | Delete
*/
[1082] Fix | Delete
[1083] Fix | Delete
/**
[1084] Fix | Delete
* Default locale data to use for Tannin domain when not otherwise provided.
[1085] Fix | Delete
* Assumes an English plural forms expression.
[1086] Fix | Delete
*
[1087] Fix | Delete
* @type {LocaleData}
[1088] Fix | Delete
*/
[1089] Fix | Delete
[1090] Fix | Delete
var DEFAULT_LOCALE_DATA = {
[1091] Fix | Delete
'': {
[1092] Fix | Delete
/** @param {number} n */
[1093] Fix | Delete
plural_forms: function plural_forms(n) {
[1094] Fix | Delete
return n === 1 ? 0 : 1;
[1095] Fix | Delete
}
[1096] Fix | Delete
}
[1097] Fix | Delete
};
[1098] Fix | Delete
/* eslint-disable jsdoc/valid-types */
[1099] Fix | Delete
[1100] Fix | Delete
/**
[1101] Fix | Delete
* @typedef {(data?: LocaleData, domain?: string) => void} SetLocaleData
[1102] Fix | Delete
* Merges locale data into the Tannin instance by domain. Accepts data in a
[1103] Fix | Delete
* Jed-formatted JSON object shape.
[1104] Fix | Delete
*
[1105] Fix | Delete
* @see http://messageformat.github.io/Jed/
[1106] Fix | Delete
*/
[1107] Fix | Delete
[1108] Fix | Delete
/**
[1109] Fix | Delete
* @typedef {(domain?: string) => string} GetFilterDomain
[1110] Fix | Delete
* Retrieve the domain to use when calling domain-specific filters.
[1111] Fix | Delete
*/
[1112] Fix | Delete
[1113] Fix | Delete
/**
[1114] Fix | Delete
* @typedef {(text: string, domain?: string) => string} __
[1115] Fix | Delete
*
[1116] Fix | Delete
* Retrieve the translation of text.
[1117] Fix | Delete
*
[1118] Fix | Delete
* @see https://developer.wordpress.org/reference/functions/__/
[1119] Fix | Delete
*/
[1120] Fix | Delete
[1121] Fix | Delete
/**
[1122] Fix | Delete
* @typedef {(text: string, context: string, domain?: string) => string} _x
[1123] Fix | Delete
*
[1124] Fix | Delete
* Retrieve translated string with gettext context.
[1125] Fix | Delete
*
[1126] Fix | Delete
* @see https://developer.wordpress.org/reference/functions/_x/
[1127] Fix | Delete
*/
[1128] Fix | Delete
[1129] Fix | Delete
/**
[1130] Fix | Delete
* @typedef {(single: string, plural: string, number: number, domain?: string) => string} _n
[1131] Fix | Delete
*
[1132] Fix | Delete
* Translates and retrieves the singular or plural form based on the supplied
[1133] Fix | Delete
* number.
[1134] Fix | Delete
*
[1135] Fix | Delete
* @see https://developer.wordpress.org/reference/functions/_n/
[1136] Fix | Delete
*/
[1137] Fix | Delete
[1138] Fix | Delete
/**
[1139] Fix | Delete
* @typedef {(single: string, plural: string, number: number, context: string, domain?: string) => string} _nx
[1140] Fix | Delete
*
[1141] Fix | Delete
* Translates and retrieves the singular or plural form based on the supplied
[1142] Fix | Delete
* number, with gettext context.
[1143] Fix | Delete
*
[1144] Fix | Delete
* @see https://developer.wordpress.org/reference/functions/_nx/
[1145] Fix | Delete
*/
[1146] Fix | Delete
[1147] Fix | Delete
/**
[1148] Fix | Delete
* @typedef {() => boolean} IsRtl
[1149] Fix | Delete
*
[1150] Fix | Delete
* Check if current locale is RTL.
[1151] Fix | Delete
*
[1152] Fix | Delete
* **RTL (Right To Left)** is a locale property indicating that text is written from right to left.
[1153] Fix | Delete
* For example, the `he` locale (for Hebrew) specifies right-to-left. Arabic (ar) is another common
[1154] Fix | Delete
* language written RTL. The opposite of RTL, LTR (Left To Right) is used in other languages,
[1155] Fix | Delete
* including English (`en`, `en-US`, `en-GB`, etc.), Spanish (`es`), and French (`fr`).
[1156] Fix | Delete
*/
[1157] Fix | Delete
[1158] Fix | Delete
/**
[1159] Fix | Delete
* @typedef {{ applyFilters: (hookName:string, ...args: unknown[]) => unknown}} ApplyFiltersInterface
[1160] Fix | Delete
*/
[1161] Fix | Delete
[1162] Fix | Delete
/* eslint-enable jsdoc/valid-types */
[1163] Fix | Delete
[1164] Fix | Delete
/**
[1165] Fix | Delete
* An i18n instance
[1166] Fix | Delete
*
[1167] Fix | Delete
* @typedef I18n
[1168] Fix | Delete
* @property {SetLocaleData} setLocaleData Merges locale data into the Tannin instance by domain. Accepts data in a
[1169] Fix | Delete
* Jed-formatted JSON object shape.
[1170] Fix | Delete
* @property {__} __ Retrieve the translation of text.
[1171] Fix | Delete
* @property {_x} _x Retrieve translated string with gettext context.
[1172] Fix | Delete
* @property {_n} _n Translates and retrieves the singular or plural form based on the supplied
[1173] Fix | Delete
* number.
[1174] Fix | Delete
* @property {_nx} _nx Translates and retrieves the singular or plural form based on the supplied
[1175] Fix | Delete
* number, with gettext context.
[1176] Fix | Delete
* @property {IsRtl} isRTL Check if current locale is RTL.
[1177] Fix | Delete
*/
[1178] Fix | Delete
[1179] Fix | Delete
/**
[1180] Fix | Delete
* Create an i18n instance
[1181] Fix | Delete
*
[1182] Fix | Delete
* @param {LocaleData} [initialData] Locale data configuration.
[1183] Fix | Delete
* @param {string} [initialDomain] Domain for which configuration applies.
[1184] Fix | Delete
* @param {ApplyFiltersInterface} [hooks] Hooks implementation.
[1185] Fix | Delete
* @return {I18n} I18n instance
[1186] Fix | Delete
*/
[1187] Fix | Delete
[1188] Fix | Delete
var create_i18n_createI18n = function createI18n(initialData, initialDomain, hooks) {
[1189] Fix | Delete
/**
[1190] Fix | Delete
* The underlying instance of Tannin to which exported functions interface.
[1191] Fix | Delete
*
[1192] Fix | Delete
* @type {Tannin}
[1193] Fix | Delete
*/
[1194] Fix | Delete
var tannin = new Tannin({});
[1195] Fix | Delete
/** @type {SetLocaleData} */
[1196] Fix | Delete
[1197] Fix | Delete
var setLocaleData = function setLocaleData(data) {
[1198] Fix | Delete
var domain = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
[1199] Fix | Delete
tannin.data[domain] = _objectSpread(_objectSpread(_objectSpread({}, DEFAULT_LOCALE_DATA), tannin.data[domain]), data); // Populate default domain configuration (supported locale date which omits
[1200] Fix | Delete
// a plural forms expression).
[1201] Fix | Delete
[1202] Fix | Delete
tannin.data[domain][''] = _objectSpread(_objectSpread({}, DEFAULT_LOCALE_DATA['']), tannin.data[domain]['']);
[1203] Fix | Delete
};
[1204] Fix | Delete
/**
[1205] Fix | Delete
* Wrapper for Tannin's `dcnpgettext`. Populates default locale data if not
[1206] Fix | Delete
* otherwise previously assigned.
[1207] Fix | Delete
*
[1208] Fix | Delete
* @param {string|undefined} domain Domain to retrieve the translated text.
[1209] Fix | Delete
* @param {string|undefined} context Context information for the translators.
[1210] Fix | Delete
* @param {string} single Text to translate if non-plural. Used as
[1211] Fix | Delete
* fallback return value on a caught error.
[1212] Fix | Delete
* @param {string} [plural] The text to be used if the number is
[1213] Fix | Delete
* plural.
[1214] Fix | Delete
* @param {number} [number] The number to compare against to use
[1215] Fix | Delete
* either the singular or plural form.
[1216] Fix | Delete
*
[1217] Fix | Delete
* @return {string} The translated string.
[1218] Fix | Delete
*/
[1219] Fix | Delete
[1220] Fix | Delete
[1221] Fix | Delete
var dcnpgettext = function dcnpgettext() {
[1222] Fix | Delete
var domain = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'default';
[1223] Fix | Delete
var context = arguments.length > 1 ? arguments[1] : undefined;
[1224] Fix | Delete
var single = arguments.length > 2 ? arguments[2] : undefined;
[1225] Fix | Delete
var plural = arguments.length > 3 ? arguments[3] : undefined;
[1226] Fix | Delete
var number = arguments.length > 4 ? arguments[4] : undefined;
[1227] Fix | Delete
[1228] Fix | Delete
if (!tannin.data[domain]) {
[1229] Fix | Delete
setLocaleData(undefined, domain);
[1230] Fix | Delete
}
[1231] Fix | Delete
[1232] Fix | Delete
return tannin.dcnpgettext(domain, context, single, plural, number);
[1233] Fix | Delete
};
[1234] Fix | Delete
/** @type {GetFilterDomain} */
[1235] Fix | Delete
[1236] Fix | Delete
[1237] Fix | Delete
var getFilterDomain = function getFilterDomain(domain) {
[1238] Fix | Delete
if (typeof domain === 'undefined') {
[1239] Fix | Delete
return 'default';
[1240] Fix | Delete
}
[1241] Fix | Delete
[1242] Fix | Delete
return domain;
[1243] Fix | Delete
};
[1244] Fix | Delete
/** @type {__} */
[1245] Fix | Delete
[1246] Fix | Delete
[1247] Fix | Delete
var __ = function __(text, domain) {
[1248] Fix | Delete
var translation = dcnpgettext(domain, undefined, text);
[1249] Fix | Delete
/**
[1250] Fix | Delete
* Filters text with its translation.
[1251] Fix | Delete
*
[1252] Fix | Delete
* @param {string} translation Translated text.
[1253] Fix | Delete
* @param {string} text Text to translate.
[1254] Fix | Delete
* @param {string} domain Text domain. Unique identifier for retrieving translated strings.
[1255] Fix | Delete
*/
[1256] Fix | Delete
[1257] Fix | Delete
if (typeof hooks === 'undefined') {
[1258] Fix | Delete
return translation;
[1259] Fix | Delete
}
[1260] Fix | Delete
[1261] Fix | Delete
translation =
[1262] Fix | Delete
/** @type {string} */
[1263] Fix | Delete
[1264] Fix | Delete
/** @type {*} */
[1265] Fix | Delete
hooks.applyFilters('i18n.gettext', translation, text, domain);
[1266] Fix | Delete
return (
[1267] Fix | Delete
/** @type {string} */
[1268] Fix | Delete
[1269] Fix | Delete
/** @type {*} */
[1270] Fix | Delete
hooks.applyFilters('i18n.gettext_' + getFilterDomain(domain), translation, text, domain)
[1271] Fix | Delete
);
[1272] Fix | Delete
};
[1273] Fix | Delete
/** @type {_x} */
[1274] Fix | Delete
[1275] Fix | Delete
[1276] Fix | Delete
var _x = function _x(text, context, domain) {
[1277] Fix | Delete
var translation = dcnpgettext(domain, context, text);
[1278] Fix | Delete
/**
[1279] Fix | Delete
* Filters text with its translation based on context information.
[1280] Fix | Delete
*
[1281] Fix | Delete
* @param {string} translation Translated text.
[1282] Fix | Delete
* @param {string} text Text to translate.
[1283] Fix | Delete
* @param {string} context Context information for the translators.
[1284] Fix | Delete
* @param {string} domain Text domain. Unique identifier for retrieving translated strings.
[1285] Fix | Delete
*/
[1286] Fix | Delete
[1287] Fix | Delete
if (typeof hooks === 'undefined') {
[1288] Fix | Delete
return translation;
[1289] Fix | Delete
}
[1290] Fix | Delete
[1291] Fix | Delete
translation =
[1292] Fix | Delete
/** @type {string} */
[1293] Fix | Delete
[1294] Fix | Delete
/** @type {*} */
[1295] Fix | Delete
hooks.applyFilters('i18n.gettext_with_context', translation, text, context, domain);
[1296] Fix | Delete
return (
[1297] Fix | Delete
/** @type {string} */
[1298] Fix | Delete
[1299] Fix | Delete
/** @type {*} */
[1300] Fix | Delete
hooks.applyFilters('i18n.gettext_with_context_' + getFilterDomain(domain), translation, text, context, domain)
[1301] Fix | Delete
);
[1302] Fix | Delete
};
[1303] Fix | Delete
/** @type {_n} */
[1304] Fix | Delete
[1305] Fix | Delete
[1306] Fix | Delete
var _n = function _n(single, plural, number, domain) {
[1307] Fix | Delete
var translation = dcnpgettext(domain, undefined, single, plural, number);
[1308] Fix | Delete
[1309] Fix | Delete
if (typeof hooks === 'undefined') {
[1310] Fix | Delete
return translation;
[1311] Fix | Delete
}
[1312] Fix | Delete
/**
[1313] Fix | Delete
* Filters the singular or plural form of a string.
[1314] Fix | Delete
*
[1315] Fix | Delete
* @param {string} translation Translated text.
[1316] Fix | Delete
* @param {string} single The text to be used if the number is singular.
[1317] Fix | Delete
* @param {string} plural The text to be used if the number is plural.
[1318] Fix | Delete
* @param {string} number The number to compare against to use either the singular or plural form.
[1319] Fix | Delete
* @param {string} domain Text domain. Unique identifier for retrieving translated strings.
[1320] Fix | Delete
*/
[1321] Fix | Delete
[1322] Fix | Delete
[1323] Fix | Delete
translation =
[1324] Fix | Delete
/** @type {string} */
[1325] Fix | Delete
[1326] Fix | Delete
/** @type {*} */
[1327] Fix | Delete
hooks.applyFilters('i18n.ngettext', translation, single, plural, number, domain);
[1328] Fix | Delete
return (
[1329] Fix | Delete
/** @type {string} */
[1330] Fix | Delete
[1331] Fix | Delete
/** @type {*} */
[1332] Fix | Delete
hooks.applyFilters('i18n.ngettext_' + getFilterDomain(domain), translation, single, plural, number, domain)
[1333] Fix | Delete
);
[1334] Fix | Delete
};
[1335] Fix | Delete
/** @type {_nx} */
[1336] Fix | Delete
[1337] Fix | Delete
[1338] Fix | Delete
var _nx = function _nx(single, plural, number, context, domain) {
[1339] Fix | Delete
var translation = dcnpgettext(domain, context, single, plural, number);
[1340] Fix | Delete
[1341] Fix | Delete
if (typeof hooks === 'undefined') {
[1342] Fix | Delete
return translation;
[1343] Fix | Delete
}
[1344] Fix | Delete
/**
[1345] Fix | Delete
* Filters the singular or plural form of a string with gettext context.
[1346] Fix | Delete
*
[1347] Fix | Delete
* @param {string} translation Translated text.
[1348] Fix | Delete
* @param {string} single The text to be used if the number is singular.
[1349] Fix | Delete
* @param {string} plural The text to be used if the number is plural.
[1350] Fix | Delete
* @param {string} number The number to compare against to use either the singular or plural form.
[1351] Fix | Delete
* @param {string} context Context information for the translators.
[1352] Fix | Delete
* @param {string} domain Text domain. Unique identifier for retrieving translated strings.
[1353] Fix | Delete
*/
[1354] Fix | Delete
[1355] Fix | Delete
[1356] Fix | Delete
translation =
[1357] Fix | Delete
/** @type {string} */
[1358] Fix | Delete
[1359] Fix | Delete
/** @type {*} */
[1360] Fix | Delete
hooks.applyFilters('i18n.ngettext_with_context', translation, single, plural, number, context, domain);
[1361] Fix | Delete
return (
[1362] Fix | Delete
/** @type {string} */
[1363] Fix | Delete
[1364] Fix | Delete
/** @type {*} */
[1365] Fix | Delete
hooks.applyFilters('i18n.ngettext_with_context_' + getFilterDomain(domain), translation, single, plural, number, context, domain)
[1366] Fix | Delete
);
[1367] Fix | Delete
};
[1368] Fix | Delete
/** @type {IsRtl} */
[1369] Fix | Delete
[1370] Fix | Delete
[1371] Fix | Delete
var isRTL = function isRTL() {
[1372] Fix | Delete
return 'rtl' === _x('ltr', 'text direction');
[1373] Fix | Delete
};
[1374] Fix | Delete
[1375] Fix | Delete
if (initialData) {
[1376] Fix | Delete
setLocaleData(initialData, initialDomain);
[1377] Fix | Delete
}
[1378] Fix | Delete
[1379] Fix | Delete
return {
[1380] Fix | Delete
setLocaleData: setLocaleData,
[1381] Fix | Delete
__: __,
[1382] Fix | Delete
_x: _x,
[1383] Fix | Delete
_n: _n,
[1384] Fix | Delete
_nx: _nx,
[1385] Fix | Delete
isRTL: isRTL
[1386] Fix | Delete
};
[1387] Fix | Delete
};
[1388] Fix | Delete
[1389] Fix | Delete
// EXTERNAL MODULE: external ["wp","hooks"]
[1390] Fix | Delete
var external_wp_hooks_ = __webpack_require__("g56x");
[1391] Fix | Delete
[1392] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/i18n/build-module/default-i18n.js
[1393] Fix | Delete
/**
[1394] Fix | Delete
* WordPress dependencies
[1395] Fix | Delete
*/
[1396] Fix | Delete
[1397] Fix | Delete
/**
[1398] Fix | Delete
* Internal dependencies
[1399] Fix | Delete
*/
[1400] Fix | Delete
[1401] Fix | Delete
[1402] Fix | Delete
var i18n = create_i18n_createI18n(undefined, undefined, {
[1403] Fix | Delete
applyFilters: external_wp_hooks_["applyFilters"]
[1404] Fix | Delete
});
[1405] Fix | Delete
/*
[1406] Fix | Delete
* Comments in this file are duplicated from ./i18n due to
[1407] Fix | Delete
* https://github.com/WordPress/gutenberg/pull/20318#issuecomment-590837722
[1408] Fix | Delete
*/
[1409] Fix | Delete
[1410] Fix | Delete
/**
[1411] Fix | Delete
* @typedef {import('./create-i18n').LocaleData} LocaleData
[1412] Fix | Delete
*/
[1413] Fix | Delete
[1414] Fix | Delete
/**
[1415] Fix | Delete
* Merges locale data into the Tannin instance by domain. Accepts data in a
[1416] Fix | Delete
* Jed-formatted JSON object shape.
[1417] Fix | Delete
*
[1418] Fix | Delete
* @see http://messageformat.github.io/Jed/
[1419] Fix | Delete
*
[1420] Fix | Delete
* @param {LocaleData} [data] Locale data configuration.
[1421] Fix | Delete
* @param {string} [domain] Domain for which configuration applies.
[1422] Fix | Delete
*/
[1423] Fix | Delete
[1424] Fix | Delete
var default_i18n_setLocaleData = i18n.setLocaleData.bind(i18n);
[1425] Fix | Delete
/**
[1426] Fix | Delete
* Retrieve the translation of text.
[1427] Fix | Delete
*
[1428] Fix | Delete
* @see https://developer.wordpress.org/reference/functions/__/
[1429] Fix | Delete
*
[1430] Fix | Delete
* @param {string} text Text to translate.
[1431] Fix | Delete
* @param {string} [domain] Domain to retrieve the translated text.
[1432] Fix | Delete
*
[1433] Fix | Delete
* @return {string} Translated text.
[1434] Fix | Delete
*/
[1435] Fix | Delete
[1436] Fix | Delete
var default_i18n_ = i18n.__.bind(i18n);
[1437] Fix | Delete
/**
[1438] Fix | Delete
* Retrieve translated string with gettext context.
[1439] Fix | Delete
*
[1440] Fix | Delete
* @see https://developer.wordpress.org/reference/functions/_x/
[1441] Fix | Delete
*
[1442] Fix | Delete
* @param {string} text Text to translate.
[1443] Fix | Delete
* @param {string} context Context information for the translators.
[1444] Fix | Delete
* @param {string} [domain] Domain to retrieve the translated text.
[1445] Fix | Delete
*
[1446] Fix | Delete
* @return {string} Translated context string without pipe.
[1447] Fix | Delete
*/
[1448] Fix | Delete
[1449] Fix | Delete
var default_i18n_x = i18n._x.bind(i18n);
[1450] Fix | Delete
/**
[1451] Fix | Delete
* Translates and retrieves the singular or plural form based on the supplied
[1452] Fix | Delete
* number.
[1453] Fix | Delete
*
[1454] Fix | Delete
* @see https://developer.wordpress.org/reference/functions/_n/
[1455] Fix | Delete
*
[1456] Fix | Delete
* @param {string} single The text to be used if the number is singular.
[1457] Fix | Delete
* @param {string} plural The text to be used if the number is plural.
[1458] Fix | Delete
* @param {number} number The number to compare against to use either the
[1459] Fix | Delete
* singular or plural form.
[1460] Fix | Delete
* @param {string} [domain] Domain to retrieve the translated text.
[1461] Fix | Delete
*
[1462] Fix | Delete
* @return {string} The translated singular or plural form.
[1463] Fix | Delete
*/
[1464] Fix | Delete
[1465] Fix | Delete
var default_i18n_n = i18n._n.bind(i18n);
[1466] Fix | Delete
/**
[1467] Fix | Delete
* Translates and retrieves the singular or plural form based on the supplied
[1468] Fix | Delete
* number, with gettext context.
[1469] Fix | Delete
*
[1470] Fix | Delete
* @see https://developer.wordpress.org/reference/functions/_nx/
[1471] Fix | Delete
*
[1472] Fix | Delete
* @param {string} single The text to be used if the number is singular.
[1473] Fix | Delete
* @param {string} plural The text to be used if the number is plural.
[1474] Fix | Delete
* @param {number} number The number to compare against to use either the
[1475] Fix | Delete
* singular or plural form.
[1476] Fix | Delete
* @param {string} context Context information for the translators.
[1477] Fix | Delete
* @param {string} [domain] Domain to retrieve the translated text.
[1478] Fix | Delete
*
[1479] Fix | Delete
* @return {string} The translated singular or plural form.
[1480] Fix | Delete
*/
[1481] Fix | Delete
[1482] Fix | Delete
var default_i18n_nx = i18n._nx.bind(i18n);
[1483] Fix | Delete
/**
[1484] Fix | Delete
* Check if current locale is RTL.
[1485] Fix | Delete
*
[1486] Fix | Delete
* **RTL (Right To Left)** is a locale property indicating that text is written from right to left.
[1487] Fix | Delete
* For example, the `he` locale (for Hebrew) specifies right-to-left. Arabic (ar) is another common
[1488] Fix | Delete
* language written RTL. The opposite of RTL, LTR (Left To Right) is used in other languages,
[1489] Fix | Delete
* including English (`en`, `en-US`, `en-GB`, etc.), Spanish (`es`), and French (`fr`).
[1490] Fix | Delete
*
[1491] Fix | Delete
* @return {boolean} Whether locale is RTL.
[1492] Fix | Delete
*/
[1493] Fix | Delete
[1494] Fix | Delete
var default_i18n_isRTL = i18n.isRTL.bind(i18n);
[1495] Fix | Delete
[1496] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/i18n/build-module/index.js
[1497] Fix | Delete
[1498] Fix | Delete
[1499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function