# @hua-labs/i18n-core-zustand - AI Documentation
# Version: 2.2.1
# Auto-generated by generate-docs — do not edit manually

package:
  name: "@hua-labs/i18n-core-zustand"
  version: "2.2.1"
  description: "Zustand adapter for @hua-labs/i18n-core - Type-safe state management integration"
  license: "MIT"

overview: "Type-safe adapter for integrating Zustand state management with @hua-labs/i18n-core. Provides seamless language state synchronization with SSR hydration support and circular reference prevention."

exports:
  main:
    path: "@hua-labs/i18n-core-zustand"
    provides:
      - name: "createZustandI18n"
        type: "function"
        description: "Create an i18n Provider integrated with Zustand store"
      - name: "useZustandI18n"
        type: "hook"
        description: "Hook returning { language, setLanguage } from Zustand"

features:
  - "Type-safe — Full TypeScript support"
  - "Auto-sync — Zustand store changes automatically sync to i18n"
  - "SSR compatible — Language syncs after hydration to prevent mismatches"
  - "Circular reference prevention — Safe unidirectional data flow"
  - "React Native — Works in Expo and bare RN projects"
  - "Minimal — Only Zustand as peer dependency"

related_packages:
  - "@hua-labs/i18n-core"
  - "@hua-labs/i18n-loaders"
  - "@hua-labs/state"

compatibility:
  react: ">=19.0.0"
  node: ">=20.0.0"
