Skip to main content

ftl_locale_dir

Function ftl_locale_dir 

Source
pub fn ftl_locale_dir(locale: &str) -> Result<PathBuf>
Expand description

Canonical on-disk directory for a locale’s runtime/zerocode FTL catalogues: <config_dir>/data/ftl/<locale>/. This is where zeroclaw locales fetch writes downloaded translations and where the runtime i18n loader reads them. <config_dir> honors ZEROCLAW_CONFIG_DIR and otherwise defaults to ~/.zeroclaw. The zerocode binary mirrors this path inline (it carries no zeroclaw-* dependency).