@fonderie/client 1.8.0 → 1.9.0

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.
@@ -1719,4 +1719,30 @@ interface IRemoteConfigState {
1719
1719
  isLoading: boolean;
1720
1720
  error: unknown;
1721
1721
  }
1722
+
1723
+ const ADMIN_LOCALES: readonly ["en", "fr", "es"]
1724
+
1725
+ const DEFAULT_ADMIN_LOCALE: "en" | "fr" | "es"
1726
+
1727
+ const adminLocaleNames: { en: string; fr: string; es: string; }
1728
+
1729
+ const adminLocaleTags: { en: string; fr: string; es: string; }
1730
+
1731
+ function createAdminT(locale?: "en" | "fr" | "es" | undefined): (key: AdminMessageKey, params?: AdminMessageParams | undefined) => string
1732
+
1733
+ function detectAdminLocale(languages?: readonly string[]): "en" | "fr" | "es"
1734
+
1735
+ function formatAdminDate(value: string | number | Date, locale?: "en" | "fr" | "es" | undefined, style?: "date" | "datetime" | "time"): string
1736
+
1737
+ function isAdminLocale(value: unknown): value is "en" | "fr" | "es"
1738
+
1739
+ type AdminLocale = (typeof ADMIN_LOCALES)[number];
1740
+
1741
+ type AdminMessageKey = MessagePath<AdminMessages>;
1742
+
1743
+ type AdminMessageParams = Record<string, string | number>;
1744
+
1745
+ type AdminMessages = typeof en;
1746
+
1747
+ type AdminT = ReturnType<typeof createAdminT>;
1722
1748
  ```