Socket
Socket
Sign inDemoInstall

@lingui/core

Package Overview
Dependencies
Maintainers
2
Versions
147
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 4.5.0 to 4.6.0

24

dist/index.d.ts

@@ -10,3 +10,3 @@ import { CompiledMessage } from '@lingui/message-utils/compileMessage';

emit(event: keyof Events, ...args: Parameters<Events[typeof event]>): void;
private _hasEvent;
private _getListeners;
}

@@ -71,9 +71,9 @@

private _locale;
private _locales;
private _locales?;
private _localeData;
private _messages;
private _missing;
private _missing?;
constructor(params: setupI18nProps);
get locale(): string;
get locales(): Locales;
get locales(): Locales | undefined;
get messages(): Messages;

@@ -112,14 +112,20 @@ /**

declare const defaultLocale = "en";
declare function date(locales: Locales, value: string | Date, format?: Intl.DateTimeFormatOptions): string;
declare function number(locales: Locales, value: number, format?: Intl.NumberFormatOptions): string;
declare function plural(locales: Locales, ordinal: boolean, value: number, { offset, ...rules }: {
[x: string]: any;
offset?: number;
}): string;
type PluralOptions = {
[key: string]: Intl.LDMLPluralRule;
} & {
offset: number;
other: string;
};
declare function plural(locales: Locales, ordinal: boolean, value: number, { offset, ...rules }: PluralOptions): string;
type formats_PluralOptions = PluralOptions;
declare const formats_date: typeof date;
declare const formats_defaultLocale: typeof defaultLocale;
declare const formats_number: typeof number;
declare const formats_plural: typeof plural;
declare namespace formats {
export { formats_date as date, formats_number as number, formats_plural as plural };
export { type formats_PluralOptions as PluralOptions, formats_date as date, formats_defaultLocale as defaultLocale, formats_number as number, formats_plural as plural };
}

@@ -126,0 +132,0 @@

{
"name": "@lingui/core",
"version": "4.5.0",
"version": "4.6.0",
"sideEffects": false,

@@ -57,3 +57,3 @@ "description": "I18n tools for javascript",

"@babel/runtime": "^7.20.13",
"@lingui/message-utils": "4.5.0",
"@lingui/message-utils": "4.6.0",
"unraw": "^3.0.0"

@@ -65,3 +65,3 @@ },

},
"gitHead": "62c92d1f8c60b3890bdda870f307fa780d423080"
"gitHead": "2afa0efb2d0cd1d47adc76e1eec9f5e57e34ae18"
}

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