@fonderie/client 1.8.0 → 1.10.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.
- package/brain/signatures.md +28 -0
- package/dist/index.cjs +2201 -69
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +667 -1
- package/dist/index.d.ts +667 -1
- package/dist/index.js +2193 -69
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/brain/signatures.md
CHANGED
|
@@ -1719,4 +1719,32 @@ 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: AdminLocale
|
|
1726
|
+
|
|
1727
|
+
const adminLocaleNames: LocaleMap<string>
|
|
1728
|
+
|
|
1729
|
+
const adminLocaleTags: LocaleMap<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 LocaleMap<T> = Readonly<Record<AdminLocale, T>>;
|
|
1742
|
+
|
|
1743
|
+
type AdminMessageKey = MessagePath<AdminMessages>;
|
|
1744
|
+
|
|
1745
|
+
type AdminMessageParams = Record<string, string | number>;
|
|
1746
|
+
|
|
1747
|
+
type AdminMessages = typeof en;
|
|
1748
|
+
|
|
1749
|
+
type AdminT = ReturnType<typeof createAdminT>;
|
|
1722
1750
|
```
|