aeat.domain.calculations.registry._loader_locales module

Locale-translation loading and merging for the directory-mode TOML loader.

Extracted from _loader to keep that module under its size budget (aeat-architecture-boundaries, registry-resolver-family-extraction). Owns the locales/*.toml read, merge, referential-integrity check, and casilla-injection pipeline that load_modelo_directory() applies after merging a modelo’s revision fragments. Per aeat-locales-cli, the modelo schema-local translation TOML this module reads is authored only through the aeat.locales modelo CLI; this module is the read-side compiler for that authored data, not an authoring surface.

See also

_loader

Owns directory-mode modelo/revision fragment merging and calls apply_locales() once the revision TOML is merged.

class RegistryLocaleTranslation(**data)[source]

Bases: BaseModel

Parameters:
labels: dict[str, str]
help: dict[str, str]
apply_locales(modelo_dir, merged_revisions)[source]

Load, validate, and inject a modelo directory’s locale TOML in place.

Called once by _load_modelo_directory_cached() after a directory-mode modelo’s revision fragments are merged, so the locale keys can be validated against the final casilla/continuity id set.

Return type:

None

Parameters: