Socket
Socket
Sign inDemoInstall

@wordpress/i18n

Package Overview
Dependencies
15
Maintainers
24
Versions
147
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.50.0 to 4.51.0

8

build-module/create-i18n.js

@@ -280,3 +280,3 @@ /**

/** @type {*} */hooks.applyFilters('i18n.gettext', translation, text, domain);
return (/** @type {string} */
return /** @type {string} */(
/** @type {*} */hooks.applyFilters('i18n.gettext_' + getFilterDomain(domain), translation, text, domain)

@@ -303,3 +303,3 @@ );

/** @type {*} */hooks.applyFilters('i18n.gettext_with_context', translation, text, context, domain);
return (/** @type {string} */
return /** @type {string} */(
/** @type {*} */hooks.applyFilters('i18n.gettext_with_context_' + getFilterDomain(domain), translation, text, context, domain)

@@ -327,3 +327,3 @@ );

/** @type {*} */hooks.applyFilters('i18n.ngettext', translation, single, plural, number, domain);
return (/** @type {string} */
return /** @type {string} */(
/** @type {*} */hooks.applyFilters('i18n.ngettext_' + getFilterDomain(domain), translation, single, plural, number, domain)

@@ -352,3 +352,3 @@ );

/** @type {*} */hooks.applyFilters('i18n.ngettext_with_context', translation, single, plural, number, context, domain);
return (/** @type {string} */
return /** @type {string} */(
/** @type {*} */hooks.applyFilters('i18n.ngettext_with_context_' + getFilterDomain(domain), translation, single, plural, number, context, domain)

@@ -355,0 +355,0 @@ );

@@ -287,3 +287,3 @@ "use strict";

/** @type {*} */hooks.applyFilters('i18n.gettext', translation, text, domain);
return (/** @type {string} */
return /** @type {string} */(
/** @type {*} */hooks.applyFilters('i18n.gettext_' + getFilterDomain(domain), translation, text, domain)

@@ -310,3 +310,3 @@ );

/** @type {*} */hooks.applyFilters('i18n.gettext_with_context', translation, text, context, domain);
return (/** @type {string} */
return /** @type {string} */(
/** @type {*} */hooks.applyFilters('i18n.gettext_with_context_' + getFilterDomain(domain), translation, text, context, domain)

@@ -334,3 +334,3 @@ );

/** @type {*} */hooks.applyFilters('i18n.ngettext', translation, single, plural, number, domain);
return (/** @type {string} */
return /** @type {string} */(
/** @type {*} */hooks.applyFilters('i18n.ngettext_' + getFilterDomain(domain), translation, single, plural, number, domain)

@@ -359,3 +359,3 @@ );

/** @type {*} */hooks.applyFilters('i18n.ngettext_with_context', translation, single, plural, number, context, domain);
return (/** @type {string} */
return /** @type {string} */(
/** @type {*} */hooks.applyFilters('i18n.ngettext_with_context_' + getFilterDomain(domain), translation, single, plural, number, context, domain)

@@ -362,0 +362,0 @@ );

@@ -22,3 +22,3 @@ "use strict";

*/
var _default = i18n;
var _default = exports.default = i18n;
/*

@@ -41,4 +41,3 @@ * Comments in this file are duplicated from ./i18n due to

*/
exports.default = _default;
const getLocaleData = i18n.getLocaleData.bind(i18n);
const getLocaleData = exports.getLocaleData = i18n.getLocaleData.bind(i18n);

@@ -54,4 +53,3 @@ /**

*/
exports.getLocaleData = getLocaleData;
const setLocaleData = i18n.setLocaleData.bind(i18n);
const setLocaleData = exports.setLocaleData = i18n.setLocaleData.bind(i18n);

@@ -67,4 +65,3 @@ /**

*/
exports.setLocaleData = setLocaleData;
const resetLocaleData = i18n.resetLocaleData.bind(i18n);
const resetLocaleData = exports.resetLocaleData = i18n.resetLocaleData.bind(i18n);

@@ -77,4 +74,3 @@ /**

*/
exports.resetLocaleData = resetLocaleData;
const subscribe = i18n.subscribe.bind(i18n);
const subscribe = exports.subscribe = i18n.subscribe.bind(i18n);

@@ -91,4 +87,3 @@ /**

*/
exports.subscribe = subscribe;
const __ = i18n.__.bind(i18n);
const __ = exports.__ = i18n.__.bind(i18n);

@@ -106,4 +101,3 @@ /**

*/
exports.__ = __;
const _x = i18n._x.bind(i18n);
const _x = exports._x = i18n._x.bind(i18n);

@@ -124,4 +118,3 @@ /**

*/
exports._x = _x;
const _n = i18n._n.bind(i18n);
const _n = exports._n = i18n._n.bind(i18n);

@@ -143,4 +136,3 @@ /**

*/
exports._n = _n;
const _nx = i18n._nx.bind(i18n);
const _nx = exports._nx = i18n._nx.bind(i18n);

@@ -157,4 +149,3 @@ /**

*/
exports._nx = _nx;
const isRTL = i18n.isRTL.bind(i18n);
const isRTL = exports.isRTL = i18n.isRTL.bind(i18n);

@@ -169,5 +160,3 @@ /**

*/
exports.isRTL = isRTL;
const hasTranslation = i18n.hasTranslation.bind(i18n);
exports.hasTranslation = hasTranslation;
const hasTranslation = exports.hasTranslation = i18n.hasTranslation.bind(i18n);
//# sourceMappingURL=default-i18n.js.map

@@ -106,4 +106,4 @@ "use strict";

var _defaultI18n = _interopRequireWildcard(require("./default-i18n"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
//# sourceMappingURL=index.js.map

@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->

## 4.51.0 (2024-02-09)
## 4.50.0 (2024-01-24)

@@ -7,0 +9,0 @@

{
"name": "@wordpress/i18n",
"version": "4.50.0",
"version": "4.51.0",
"description": "WordPress internationalization (i18n) library.",

@@ -33,3 +33,3 @@ "author": "The WordPress Contributors",

"@babel/runtime": "^7.16.0",
"@wordpress/hooks": "^3.50.0",
"@wordpress/hooks": "^3.51.0",
"gettext-parser": "^1.3.1",

@@ -43,3 +43,3 @@ "memize": "^2.1.0",

},
"gitHead": "45de2cb4212fed7f2763e95f10300d1ff9d0ec08"
"gitHead": "eb796371e9630636a4a8837033807b0c4a06ed67"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc