lang

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	LANG string
}

type Resolution

type Resolution struct {
	Code   string
	Name   string
	Source Source
}

func Resolve

func Resolve(repo, global *config.Config, env Env) Resolution

type Source

type Source int
const (
	SourceDefault Source = iota
	SourceEnvLANG
	SourceGlobalConfig
	SourceRepoConfig
	// SourceCLIFlag is the highest-priority step in the D-21 chain: when the
	// user explicitly passes --lang on the command line, that wins over all
	// other sources. Resolve() does not return it directly (it has no access
	// to flags); callers apply the override after Resolve() and stamp this
	// Source so dry-run and verbose footer attribution stay accurate.
	SourceCLIFlag
)

func (Source) String

func (s Source) String() string

Jump to

Keyboard shortcuts

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