All Release Notes
Localized name for Shipping Method
4 October 2021
Composable Commerce
HTTP API
Enhancement
OrdersGraphQL
Shipping Method now supports localized names. This enables displaying shipping methods in different languages.
Changes:
- [API] Added
localizedName
to ShippingMethod. - [API] Added
localizedName
to ShippingMethodDraft. - [API] Added Set Localized Name Update Action.
- [GraphQL API] Changed the
ShippingMethodUpdateAction
type:- Input field
setLocalizedName
was added toShippingMethodUpdateAction
type.
- Input field
- [GraphQL API] Changed the
ShippingMethod
type:- Added the
localizedNameAllLocales
field to theShippingMethod
type. - Added the
localizedName
field to theShippingMethod
type.
- Added the
- [GraphQL API] Changed the
ShippingMethodDraft
type:- Input field
localizedName
was added toShippingMethodDraft
type.
- Input field
- [GraphQL API] Added the following type to the GraphQL schema:
SetShippingMethodLocalizedName
.
The following changes were made in terms of GraphQL SDL:
extend type ShippingMethod {localizedName("String is defined for different locales. This argument specifies the desired locale."locale: Locale,"List of languages the client is able to understand, and which locale variant is preferred."acceptLanguage: [Locale!]): StringlocalizedNameAllLocales: [LocalizedString!]}extend input ShippingMethodUpdateAction {setLocalizedName: SetShippingMethodLocalizedName}extend input ShippingMethodDraft {localizedName: [LocalizedStringItemInputType!]}input SetShippingMethodLocalizedName {localizedName: [LocalizedStringItemInputType!]}