{"record":{"id":"10f164c3bfad0e96","repo":"zeroclaw-labs/zeroclaw","slug":"locale-locale-is-not-in-the-locales-toml-regis","errorCode":null,"errorMessage":"locale '{locale}' is not in the locales.toml registry; known: {}","messagePattern":"locale '(.+?)' is not in the locales\\.toml registry; known: (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/main.rs","lineNumber":3304,"sourceCode":"        cmd = cmd.mut_subcommand(name, |sub| apply_cmd_translations(sub, &child_prefix));\n    }\n    cmd\n}\n\n#[cfg(feature = \"agent-runtime\")]\nfn validated_locale(locale: &str) -> Result<String> {\n    let ok_shape = !locale.is_empty()\n        && locale.len() <= 16\n        && locale\n            .chars()\n            .all(|c| c.is_ascii_alphanumeric() || c == '-');\n    if !ok_shape {\n        bail!(\"invalid locale code '{locale}'\");\n    }\n    let known = zeroclaw_runtime::i18n::available_locales();\n    if !known.iter().any(|o| o.code == locale) {\n        let codes: Vec<&str> = known.iter().map(|o| o.code.as_str()).collect();\n        bail!(\n            \"locale '{locale}' is not in the locales.toml registry; known: {}\",\n            codes.join(\", \")\n        );\n    }\n    Ok(locale.to_string())\n}\n\n#[cfg(feature = \"agent-runtime\")]\nasync fn fetch_locales(locale: &str, catalog: Option<&str>) -> Result<()> {\n    let locale = validated_locale(locale)?;\n\n    let selected: Vec<&(&str, &str, &str)> = match catalog {\n        None => zeroclaw_config::schema::FTL_CATALOGS.iter().collect(),\n        Some(list) => {\n            let names: Vec<&str> = list\n                .split(',')\n                .map(str::trim)\n                .filter(|s| !s.is_empty())","sourceCodeStart":3286,"sourceCodeEnd":3322,"githubUrl":"https://github.com/zeroclaw-labs/zeroclaw/blob/88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc/src/main.rs#L3286-L3322","documentation":"Error \"locale '{locale}' is not in the locales.toml registry; known: {}\" thrown in zeroclaw-labs/zeroclaw.","triggerScenarios":"Thrown at src/main.rs:3304 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Choose one of the known locales printed in the error message.","Add the locale to locales.toml registry first if you intend to introduce a new one."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"88bb9c8533fc57ed7a03e36ca7c9ed2bf8336dcc","analyzedAt":"2026-08-23T01:07:41.857Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}