locale

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package locale validates the persisted UI locale and renders soft language guidance for human-facing LLM output.

Index

Constants

View Source
const MaxLength = 63

Variables

This section is empty.

Functions

func AppendReplyInstruction

func AppendReplyInstruction(instructions, value string) string

AppendReplyInstruction appends locale guidance to existing prompt instructions.

func BuildInstruction

func BuildInstruction(value string, upgrade bool) string

BuildInstruction returns language guidance for generated human-authored UI copy.

func Canonicalize

func Canonicalize(value string) (string, error)

Canonicalize parses a locale and returns its canonical BCP 47 form.

func ReplyInstruction

func ReplyInstruction(value string) string

ReplyInstruction returns soft language guidance for human-facing replies.

Types

This section is empty.

Jump to

Keyboard shortcuts

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