internal

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package internal provides adk internal utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SelectPrompt

func SelectPrompt(prompts I18nPrompts) string

SelectPrompt returns the appropriate prompt string based on the current language setting. Returns an error if the current language is not supported.

func SetLanguage

func SetLanguage(lang Language) error

SetLanguage sets the language for the ADK built-in prompts. The default language is English if not explicitly set.

Types

type I18nPrompts

type I18nPrompts struct {
	English string
	Chinese string
}

I18nPrompts holds prompt strings for different languages.

type Language

type Language uint8

Language represents the language setting for the ADK built-in prompts.

const (
	// LanguageEnglish represents English language.
	LanguageEnglish Language = iota
	// LanguageChinese represents Chinese language.
	LanguageChinese
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL