// Package presets embeds AgentTeam's built-in preset content (memory templates,
// official skill libraries, skill scaffolds, and team templates) and exposes
// locale-aware accessors consumed by both the AgentTeam main module and the meshx
// module.
//
// Locale codes follow BCP 47 on the public API (e.g. "zh-CN", "ja-JP").
// Asset directories use the kebab-case form ("zh-cn", "ja") for filesystem
// portability.
package presets

import "github.com/tidbcloud/AgentTeam/presets/internal/locale"

// Supported locale constants mirror the values exposed by the internal
// locale package so consumers can compare without importing it.
const (
	LocaleEnglish           = locale.English
	LocaleSimplifiedChinese = locale.SimplifiedChinese
	LocaleJapanese          = locale.Japanese
)

// NormalizeLocale maps an arbitrary locale string to one of the supported
// preset locales, defaulting to English.
func NormalizeLocale(value string) string {
	return locale.Normalize(value)
}

// localeDir returns the kebab-case asset directory name for a BCP 47 locale.
func localeDir(value string) string {
	return locale.Dir(value)
}
