@fonderie/client 1.7.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.
@@ -1455,6 +1455,7 @@ interface ISubscriptionResult {
1455
1455
  }
1456
1456
 
1457
1457
  interface ITemplateEntry {
1458
+ system?: boolean;
1458
1459
  type: string;
1459
1460
  locale: string | null;
1460
1461
  subject: string | null;
@@ -1718,4 +1719,30 @@ interface IRemoteConfigState {
1718
1719
  isLoading: boolean;
1719
1720
  error: unknown;
1720
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>;
1721
1748
  ```