Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithConfig ¶
func WithConfig(ctx context.Context, cfg *Configuration) context.Context
Types ¶
type Configuration ¶
type Configuration struct {
Localize LocalizeConfiguration `yaml:"localize"`
}
func LoadConfig ¶
func LoadConfig(configDirPath string) (*Configuration, error)
type LocalizeConfiguration ¶
type LocalizeConfiguration struct {
// LocalesDir is the root directory containing locale subdirectories (e.g., "en-US", "es-US")
LocalesDir string `yaml:"localesDir"`
// RubricPath is an optional path to a text/markdown file containing translation rules,
// legal terms, and pre-defined translation strings to guide the LLM.
RubricPath string `yaml:"rubricPath"`
}
Click to show internal directories.
Click to hide internal directories.