Documentation
¶
Overview ¶
Package localization resolves stable SpeechKit message IDs against the repository-owned locale catalogs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveLocale ¶
ResolveLocale performs deterministic BCP-47 negotiation for the registered catalogs. Supported regional variants fall back to their registered base language. Simplified Chinese variants resolve to zh-Hans; traditional Chinese and unsupported languages fall back to English.
func SupportedLocales ¶
func SupportedLocales() []string
SupportedLocales returns the initial SpeechKit locale set. English is the source locale and final fallback.
Types ¶
type Message ¶
Message is one catalog result with the negotiated locale that must also be used for result metadata and TTS.
type MessageID ¶
type MessageID string
MessageID is a stable semantic identifier for customer-facing prose.
const ( CompanionHomeAssistantNotConfigured MessageID = "companion.home_assistant.not_configured" CompanionHomeAssistantCommandEmpty MessageID = "companion.home_assistant.command.empty" CompanionHomeAssistantNotMatched MessageID = "companion.home_assistant.command.not_matched" CompanionHomeAssistantRejected MessageID = "companion.home_assistant.command.rejected" )