LWT JavaScript API
    Preparing search index...
    • Fetch the translation bundle for locale from the API and cache it.

      Merges the result into the active strings and persists it in localStorage so a later launch can hydrate synchronously. Never throws — returns false on any transport/parse failure, leaving existing strings intact.

      Parameters

      • Optionallocale: string

        Locale code (e.g. "es"); omit to use the server default

      • Optionalnamespaces: string[]

        Optional namespace allowlist (default: all)

      Returns Promise<boolean>

      true if a bundle was fetched and applied