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" // Network-scope display names shown wherever a scope is named to the user. PrivacyScopeOpenName MessageID = "sk.privacy.scope.open" PrivacyScopeLocalNetworkName MessageID = "sk.privacy.scope.local_network" PrivacyScopeDeviceOnlyName MessageID = "sk.privacy.scope.device_only" // Disabled-reason prose for the stable reason IDs attached by the // network-scope policy (see NetworkScopeReason* in pkg/speechkit). PrivacyDisabledCloudProvider MessageID = "sk.privacy.disabled.cloud_provider" PrivacyDisabledLocalService MessageID = "sk.privacy.disabled.local_service_in_device_only" PrivacyDisabledServerScope MessageID = "sk.privacy.disabled.server_in_device_only" PrivacyDisabledServerNotLocal MessageID = "sk.privacy.disabled.server_url_not_local" PrivacyDisabledAgentBridge MessageID = "sk.privacy.disabled.agent_bridge" PrivacyDisabledHomeAssistant MessageID = "sk.privacy.disabled.home_assistant" PrivacyDisabledEdgeBeta MessageID = "sk.privacy.disabled.edge_beta" PrivacyDisabledSetupTraffic MessageID = "sk.privacy.disabled.setup_traffic" PrivacyDisabledTelemetry MessageID = "sk.privacy.disabled.telemetry" PrivacyDisabledCloudAccount MessageID = "sk.privacy.disabled.cloud_account" PrivacyDisabledVoiceAgentCloud MessageID = "sk.privacy.disabled.voice_agent_cloud" )