Skip to content

sanitizeI18nState

sanitizeI18nState(raw): I18nState | null

Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/localization/persist.d.ts:25

Shape-sanitize an untrusted persisted value. This is the sync gate at bootstrap - garbage must never reach an

unknown

I18nState | null

enum, where it would fail every query on the page. Authoritative validation against availableCountries happens later, when localization data loads.