Content
Many entities, such as products or pages, besides identifiers, contain localizable content: headings, descriptions, etc.
To retrieve this content, the field localizeInfos
is used
val page: Page = ...
val info = page.localizeInfos["en_US"]
val title = info?.title ?: throw ...
println(title)
let page: Page = try await ...
let info = page.localizeInfos["en_US"]
let title = info?.title
guard let title else { throw ... }
print(title)
Last modified: 18 February 2025