@minmaps-dev/mm-web-sdk 1.0.0-rc.40 → 1.0.0-rc.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1398,6 +1398,17 @@ declare class MinuteMaps {
1398
1398
  * and must not be held hostage to a network round-trip.
1399
1399
  */
1400
1400
  setLocale(locale: string): Promise<void>;
1401
+ /**
1402
+ * Start fetching the localized names for `locale` in the background so a
1403
+ * later `setLocale(locale)` only has the in-memory patch and redraw left to
1404
+ * do. Call it once after `ready` for each alternate language the UI offers.
1405
+ *
1406
+ * Never throws and never changes the active locale or the map — a provider
1407
+ * without locale support, an empty code or a failed fetch is a silent no-op
1408
+ * (a failed fetch is retried when `setLocale` runs). Safe to call
1409
+ * repeatedly; the fetch for a given code happens once.
1410
+ */
1411
+ prefetchLocale(locale: string): Promise<void>;
1401
1412
  /** Currently active locale (BCP-47), or `undefined` when no locale has
1402
1413
  * been set — meaning JACS resolves names to the customer's default. */
1403
1414
  getActiveLocale(): string | undefined;