All Release Notes
Localized name for Shipping Method
4 October 2021
Enhancement
OrdersGraphQL
Shipping Method now supports localized names. This enables displaying shipping methods in different languages.
Changes:
- [API] Added
localizedNameto ShippingMethod. - [API] Added
localizedNameto ShippingMethodDraft. - [API] Added Set Localized Name Update Action.
- [GraphQL API] Changed the
ShippingMethodUpdateActiontype:- Input field
setLocalizedNamewas added toShippingMethodUpdateActiontype.
- Input field
- [GraphQL API] Changed the
ShippingMethodtype:- Added the
localizedNameAllLocalesfield to theShippingMethodtype. - Added the
localizedNamefield to theShippingMethodtype.
- Added the
- [GraphQL API] Changed the
ShippingMethodDrafttype:- Input field
localizedNamewas added toShippingMethodDrafttype.
- 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!]}