Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

LocalizedMessage

import type { LocalizedMessage } from "https://googleapis.deno.dev/v1/compute:v1.ts";

Provides a localized error message that is safe to return to the user which can be attached to an RPC error.

interface LocalizedMessage {
locale?: string;
message?: string;
}

§Properties

§
locale?: string
[src]

The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"

§
message?: string
[src]

The localized error message in the above locale.