@wordpress/i18n
Advanced tools
Comparing version 4.28.0 to 4.29.0
@@ -7,3 +7,3 @@ export function createI18n(initialData?: LocaleData | undefined, initialDomain?: string | undefined, hooks?: import("@wordpress/hooks/build-types/createHooks")._Hooks | undefined): I18n; | ||
*/ | ||
export type GetLocaleData = (domain?: string | undefined) => LocaleData; | ||
export type GetLocaleData = (domain?: string) => LocaleData; | ||
/** | ||
@@ -14,3 +14,3 @@ * Merges locale data into the Tannin instance by domain. Note that this | ||
*/ | ||
export type SetLocaleData = (data?: LocaleData | undefined, domain?: string | undefined) => void; | ||
export type SetLocaleData = (data?: LocaleData, domain?: string) => void; | ||
/** | ||
@@ -21,3 +21,3 @@ * Merges locale data into the Tannin instance by domain. Note that this | ||
*/ | ||
export type AddLocaleData = (data?: LocaleData | undefined, domain?: string | undefined) => void; | ||
export type AddLocaleData = (data?: LocaleData, domain?: string) => void; | ||
/** | ||
@@ -27,3 +27,3 @@ * Resets all current Tannin instance locale data and sets the specified | ||
*/ | ||
export type ResetLocaleData = (data?: LocaleData | undefined, domain?: string | undefined) => void; | ||
export type ResetLocaleData = (data?: LocaleData, domain?: string) => void; | ||
export type SubscribeCallback = () => void; | ||
@@ -38,11 +38,11 @@ export type UnsubscribeCallback = () => void; | ||
*/ | ||
export type GetFilterDomain = (domain?: string | undefined) => string; | ||
export type GetFilterDomain = (domain?: string) => string; | ||
/** | ||
* Retrieve the translation of text. | ||
*/ | ||
export type __ = (text: string, domain?: string | undefined) => string; | ||
export type __ = (text: string, domain?: string) => string; | ||
/** | ||
* Retrieve translated string with gettext context. | ||
*/ | ||
export type _x = (text: string, context: string, domain?: string | undefined) => string; | ||
export type _x = (text: string, context: string, domain?: string) => string; | ||
/** | ||
@@ -52,3 +52,3 @@ * Translates and retrieves the singular or plural form based on the supplied | ||
*/ | ||
export type _n = (single: string, plural: string, number: number, domain?: string | undefined) => string; | ||
export type _n = (single: string, plural: string, number: number, domain?: string) => string; | ||
/** | ||
@@ -58,3 +58,3 @@ * Translates and retrieves the singular or plural form based on the supplied | ||
*/ | ||
export type _nx = (single: string, plural: string, number: number, context: string, domain?: string | undefined) => string; | ||
export type _nx = (single: string, plural: string, number: number, context: string, domain?: string) => string; | ||
/** | ||
@@ -72,3 +72,3 @@ * Check if current locale is RTL. | ||
*/ | ||
export type HasTranslation = (single: string, context?: string | undefined, domain?: string | undefined) => boolean; | ||
export type HasTranslation = (single: string, context?: string, domain?: string) => boolean; | ||
export type Hooks = import('@wordpress/hooks').Hooks; | ||
@@ -75,0 +75,0 @@ /** |
@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | ||
## 4.29.0 (2023-03-15) | ||
## 4.28.0 (2023-03-01) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@wordpress/i18n", | ||
"version": "4.28.0", | ||
"version": "4.29.0", | ||
"description": "WordPress internationalization (i18n) library.", | ||
@@ -33,3 +33,3 @@ "author": "The WordPress Contributors", | ||
"@babel/runtime": "^7.16.0", | ||
"@wordpress/hooks": "^3.28.0", | ||
"@wordpress/hooks": "^3.29.0", | ||
"gettext-parser": "^1.3.1", | ||
@@ -43,3 +43,3 @@ "memize": "^1.1.0", | ||
}, | ||
"gitHead": "d5e03a74b79e3ca84afda24375474a103a063ee4" | ||
"gitHead": "9534a7b3bbf07c1d40b94fdb7a3d091f297bfb06" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
229815
Updated@wordpress/hooks@^3.29.0