@fonderie/client 1.9.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 +5 -3
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/brain/signatures.md
CHANGED
|
@@ -1722,11 +1722,11 @@ interface IRemoteConfigState {
|
|
|
1722
1722
|
|
|
1723
1723
|
const ADMIN_LOCALES: readonly ["en", "fr", "es"]
|
|
1724
1724
|
|
|
1725
|
-
const DEFAULT_ADMIN_LOCALE:
|
|
1725
|
+
const DEFAULT_ADMIN_LOCALE: AdminLocale
|
|
1726
1726
|
|
|
1727
|
-
const adminLocaleNames:
|
|
1727
|
+
const adminLocaleNames: LocaleMap<string>
|
|
1728
1728
|
|
|
1729
|
-
const adminLocaleTags:
|
|
1729
|
+
const adminLocaleTags: LocaleMap<string>
|
|
1730
1730
|
|
|
1731
1731
|
function createAdminT(locale?: "en" | "fr" | "es" | undefined): (key: AdminMessageKey, params?: AdminMessageParams | undefined) => string
|
|
1732
1732
|
|
|
@@ -1738,6 +1738,8 @@ function isAdminLocale(value: unknown): value is "en" | "fr" | "es"
|
|
|
1738
1738
|
|
|
1739
1739
|
type AdminLocale = (typeof ADMIN_LOCALES)[number];
|
|
1740
1740
|
|
|
1741
|
+
type LocaleMap<T> = Readonly<Record<AdminLocale, T>>;
|
|
1742
|
+
|
|
1741
1743
|
type AdminMessageKey = MessagePath<AdminMessages>;
|
|
1742
1744
|
|
|
1743
1745
|
type AdminMessageParams = Record<string, string | number>;
|
package/dist/index.cjs
CHANGED
|
@@ -4416,16 +4416,16 @@ var fr_default = fr;
|
|
|
4416
4416
|
// src/admin-i18n/index.ts
|
|
4417
4417
|
var ADMIN_LOCALES = ["en", "fr", "es"];
|
|
4418
4418
|
var DEFAULT_ADMIN_LOCALE = "en";
|
|
4419
|
-
var adminLocaleNames = {
|
|
4419
|
+
var adminLocaleNames = Object.freeze({
|
|
4420
4420
|
en: "English",
|
|
4421
4421
|
fr: "Fran\xE7ais",
|
|
4422
4422
|
es: "Espa\xF1ol"
|
|
4423
|
-
};
|
|
4424
|
-
var adminLocaleTags = {
|
|
4423
|
+
});
|
|
4424
|
+
var adminLocaleTags = Object.freeze({
|
|
4425
4425
|
en: "en-US",
|
|
4426
4426
|
fr: "fr-FR",
|
|
4427
4427
|
es: "es-ES"
|
|
4428
|
-
};
|
|
4428
|
+
});
|
|
4429
4429
|
var isAdminLocale = (value) => ADMIN_LOCALES.includes(value);
|
|
4430
4430
|
function detectAdminLocale(languages = []) {
|
|
4431
4431
|
for (const tag of languages) {
|