refactor(i18n): align default state snapshot shape
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
5dc9847eec
commit
56b6db8a8d
1 changed files with 3 additions and 0 deletions
3
state.go
3
state.go
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue