LocalizationResult

@Serializable
data class LocalizationResult(val requestedLocale: String, val resolvedLocale: String)

Reports the outcome of localizing an ApiError.message.

  • requestedLocale reflects the locale the SDK sent in the Accept-Language request header.

  • resolvedLocale reflects the locale the message was actually localized to, taken from the Content-Language response header (defaults to en-US if the header is absent).

The two may differ when the requested locale is not supported — in that case, the server falls back to en-US.

Constructors

Link copied to clipboard
constructor(requestedLocale: String, resolvedLocale: String)

Properties

Link copied to clipboard
val requestedLocale: String

The locale sent in the Accept-Language request header.

Link copied to clipboard
val resolvedLocale: String

The locale the message was localized to.