Socket
Socket
Sign inDemoInstall

@lingui/core

Package Overview
Dependencies
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lingui/core - npm Package Compare versions

Comparing version 2.6.1 to 2.7.0

mocks.js.flow

18

cjs/core.development.js

@@ -405,2 +405,10 @@ 'use strict';

// Expand message descriptor
if (id && (typeof id === "undefined" ? "undefined" : _typeof(id)) === "object") {
values = id.values;
defaults = id.defaults;
formats = id.formats;
id = id.id;
}
var translation = this.messages[id] || defaults || id;

@@ -432,2 +440,12 @@

}, {
key: "date",
value: function date$$1(value, format) {
return date(this.locales || this.language, format)(value);
}
}, {
key: "number",
value: function number$$1(value, format) {
return number(this.locales || this.language, format)(value);
}
}, {
key: "availableLanguages",

@@ -434,0 +452,0 @@ get: function get() {

5

cjs/core.production.min.js

@@ -13,3 +13,4 @@ 'use strict';var d=d||{};d.scope={};d.ASSUME_ES5=!1;d.ASSUME_NO_NATIVE_MAP=!1;d.ASSUME_NO_NATIVE_SET=!1;d.defineProperty=d.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,e){a!=Array.prototype&&a!=Object.prototype&&(a[b]=e.value)};d.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};d.global=d.getGlobal(this);d.SYMBOL_PREFIX="jscomp_symbol_";

(b._catalogs[c]||{}).languageData||{},(a[c]||{}).languageData||{})}}),this._cacheActiveLanguage())}},{key:"activate",value:function(a,e){a&&(this._language=a,this._locales=e,this._cacheActiveLanguage())}},{key:"use",value:function(a,e){return A({language:a,locales:e,catalogs:this._catalogs,development:this._dev})}},{key:"_",value:function(a){var b=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},f=c.defaults;c=c.formats;c=void 0===
c?{}:c;f=this.messages[a]||f||a;var g=this._missing;g&&!this.messages[a]&&(f=t(g)?g(this.language,a):g);return t(f)?z(f,this.language,this.locales,this.languageData)(b,c):f}},{key:"pluralForm",value:function(a){return this.languageData.plurals?this.languageData.plurals(a,"ordinal"===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"cardinal")):"other"}},{key:"availableLanguages",get:function(){return n(this._catalogs)}},{key:"language",get:function(){return this._language}},{key:"locales",
get:function(){return this._locales}},{key:"messages",get:function(){return this._activeMessages}},{key:"languageData",get:function(){return this._activeLanguageData}}]);return a}();function A(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=new B;a.catalogs&&b.load(a.catalogs);a.language&&b.activate(a.language,a.locales);a.missing&&(b._missing=a.missing);return b}var C=A();exports.i18nMark=function(a){return a};exports.i18n=C;exports.setupI18n=A;exports.date=u;exports.number=v;
c?{}:c;a&&"object"===("undefined"===typeof a?"undefined":p(a))&&(b=a.values,f=a.defaults,c=a.formats,a=a.id);f=this.messages[a]||f||a;var g=this._missing;g&&!this.messages[a]&&(f=t(g)?g(this.language,a):g);return t(f)?z(f,this.language,this.locales,this.languageData)(b,c):f}},{key:"pluralForm",value:function(a){return this.languageData.plurals?this.languageData.plurals(a,"ordinal"===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"cardinal")):"other"}},{key:"date",value:function(a,e){return u(this.locales||
this.language,e)(a)}},{key:"number",value:function(a,e){return v(this.locales||this.language,e)(a)}},{key:"availableLanguages",get:function(){return n(this._catalogs)}},{key:"language",get:function(){return this._language}},{key:"locales",get:function(){return this._locales}},{key:"messages",get:function(){return this._activeMessages}},{key:"languageData",get:function(){return this._activeLanguageData}}]);return a}();
function A(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=new B;a.catalogs&&b.load(a.catalogs);a.language&&b.activate(a.language,a.locales);a.missing&&(b._missing=a.missing);return b}var C=A();exports.i18nMark=function(a){return a};exports.i18n=C;exports.setupI18n=A;exports.date=u;exports.number=v;

2

package.json
{
"name": "@lingui/core",
"version": "2.6.1",
"version": "2.7.0",
"description": "I18n tools for javascript",

@@ -5,0 +5,0 @@ "keywords": [

@@ -9,3 +9,3 @@ [![License][Badge-License]][License]

`@lingui/core` is part of [js-lingui][jsLingui]. See the [documentation][Documentation] for all information, tutorials and examples.
`@lingui/core` is part of [LinguiJS][LinguiJS]. See the [documentation][Documentation] for all information, tutorials and examples.

@@ -28,6 +28,6 @@ ## Installation

[License]: https://github.com/lingui/js-lingui/blob/master/LICENSE
[jsLingui]: https://github.com/lingui/js-lingui
[Documentation]: https://lingui.github.io/js-lingui/
[Tutorial]: https://lingui.github.io/js-lingui/tutorials/js.html
[Reference]: https://lingui.github.io/js-lingui/ref/core.html
[LinguiJS]: https://github.com/lingui/js-lingui
[Documentation]: https://lingui.js.org/
[Tutorial]: https://lingui.js.org/tutorials/js.html
[Reference]: https://lingui.js.org/ref/core.html
[Package]: https://www.npmjs.com/package/@lingui/core

@@ -34,0 +34,0 @@ [Badge-Downloads]: https://img.shields.io/npm/dw/@lingui/core.svg

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc