GitHub

ShopifyLanguage

Type

import { ShopifyLanguage } from '@daffodil/driver/shopify'

A language available for a localized storefront experience. Provides the language name in both its native form (endonym) and translated into the current language, along with its LanguageCode.

Returned by the Localization and Country objects to indicate available and active languages. Pass the isoCode to the @inContext directive to retrieve translated content in that language.

interface ShopifyLanguage {
  __typename: "Language"
  endonymName: string
  isoCode: ShopifyLanguageCode
  name: string
}

Properties

__typename
"Language"
endonymName
string

The name of the language in the language itself. If the language uses capitalization, it is capitalized for a mid-sentence position.

isoCode
ShopifyLanguageCode

The ISO code.

name
string

The name of the language in the current language.