@shopify/react-i18n
Advanced tools
Comparing version 0.0.0-snapshot-20250108150133 to 0.0.0-snapshot-20250108211454
@@ -285,7 +285,7 @@ 'use strict'; | ||
} | ||
formatName(givenName, familyName, options) { | ||
formatName(firstName, lastName, options) { | ||
return name.formatName({ | ||
name: { | ||
givenName, | ||
familyName | ||
givenName: firstName, | ||
familyName: lastName | ||
}, | ||
@@ -292,0 +292,0 @@ locale: this.locale, |
@@ -68,5 +68,5 @@ import type { I18nDetails, PrimitiveReplacementDictionary, ComplexReplacementDictionary, TranslationDictionary } from './types'; | ||
}; | ||
formatName(givenName?: string | null, familyName?: string | null, options?: { | ||
formatName(firstName?: string, lastName?: string, options?: { | ||
full?: boolean; | ||
}): string | undefined; | ||
}): string; | ||
abbreviateName({ firstName, lastName, idealMaxLength, }: { | ||
@@ -76,3 +76,3 @@ firstName?: string; | ||
idealMaxLength?: number; | ||
}): string | undefined; | ||
}): string; | ||
abbreviateBusinessName({ name, idealMaxLength, }: { | ||
@@ -79,0 +79,0 @@ name: string; |
{ | ||
"name": "@shopify/react-i18n", | ||
"version": "0.0.0-snapshot-20250108150133", | ||
"version": "0.0.0-snapshot-20250108211454", | ||
"license": "MIT", | ||
@@ -49,4 +49,4 @@ "description": "i18n utilities for React handling translations, formatting, and more", | ||
"dependencies": { | ||
"@shopify/dates": "^2.1.0", | ||
"@shopify/name": "0.0.0-snapshot-20250108150133", | ||
"@shopify/dates": "0.0.0-snapshot-20250108211454", | ||
"@shopify/name": "^1.2.0", | ||
"@shopify/function-enhancers": "^3.1.0", | ||
@@ -53,0 +53,0 @@ "@shopify/i18n": "^2.1.0", |
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
298190
+ Added@shopify/dates@0.0.0-snapshot-20250108211454(transitive)
+ Added@shopify/name@1.3.0(transitive)
- Removed@shopify/dates@2.1.1(transitive)
- Removed@shopify/name@0.0.0-snapshot-20250108150133(transitive)
Updated@shopify/name@^1.2.0