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 to ShippingMethodUpdateAction type.
  • [GraphQL API] Changed the ShippingMethod type:
    • Added the localizedNameAllLocales field to the ShippingMethod type.
    • Added the localizedName field to the ShippingMethod type.
  • [GraphQL API] Changed the ShippingMethodDraft type:
    • Input field localizedName was added to ShippingMethodDraft type.
  • [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!]): String
localizedNameAllLocales: [LocalizedString!]
}
extend input ShippingMethodUpdateAction {
setLocalizedName: SetShippingMethodLocalizedName
}
extend input ShippingMethodDraft {
localizedName: [LocalizedStringItemInputType!]
}
input SetShippingMethodLocalizedName {
localizedName: [LocalizedStringItemInputType!]
}