aeat.adapters.persistence.storage.bucket._output_language_hint module¶
Bucket-local last-known output-language hint.
The encrypted user-profile record remains the authority for
preferences.output_language. This sidecar carries only the last
successfully persisted supported language code so critical storage
failures can render in the profile language when the bucket DEK cannot
be unwrapped.
- normalize_output_language_hint(value)[source]¶
Return
valueas a supported output-language code, orNone.
- bucket_output_language_hint_path(*, storage_root, bucket_id)[source]¶
Return the bucket-local output-language hint path.
- read_bucket_output_language_hint(*, storage_root, bucket_id)[source]¶
Read a supported bucket output-language hint, failing soft on absence or drift.