@lingui/core
Advanced tools
Comparing version 4.5.0 to 4.6.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48897
1037
+ Added@babel/runtime@7.25.6(transitive)
+ Added@lingui/message-utils@4.6.0(transitive)
+ Addedjs-sha256@0.10.1(transitive)
- Removed@babel/runtime@7.25.7(transitive)
- Removed@lingui/message-utils@4.5.0(transitive)
Updated@lingui/message-utils@4.6.0