refactor(i18n): align default state snapshot shape
All checks were successful
Security Scan / security (push) Successful in 14s
Test / test (push) Successful in 2m21s

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Virgil 2026-04-02 13:25:47 +00:00
parent 5dc9847eec
commit 56b6db8a8d

View file

@ -5,6 +5,8 @@ import (
)
func defaultServiceStateSnapshot() ServiceState {
// Keep the nil/default snapshot aligned with Service.State() so callers get
// the same shape regardless of whether a Service has been initialised.
return ServiceState{
Language: "en",
RequestedLanguage: "",
@ -13,6 +15,7 @@ func defaultServiceStateSnapshot() ServiceState {
Mode: ModeNormal,
Fallback: "en",
Formality: FormalityNeutral,
Location: "",
Direction: DirLTR,
IsRTL: false,
Debug: false,