@applica-software-guru/react-admin 1.5.331 → 1.5.333

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.
@@ -41322,12 +41322,9 @@ function Vpe(e) {
41322
41322
  });
41323
41323
  }
41324
41324
  function yge(e) {
41325
- const { defaultLocale: t, path: n } = e, r = [{ locale: t, name: t }], o = new Headers({ Accept: "application/json", "Content-Type": "application/json" });
41326
- function i() {
41327
- return fetch(`${n}/languages.json`, { headers: o, method: "get" }).then((l) => l.json()).catch(() => Promise.resolve(r));
41328
- }
41329
- function s() {
41330
- return fetch(`${n}/messages.json`, { headers: o, method: "get" }).then((l) => l.json()).then((l) => l.reduce(
41325
+ const { locales: t, defaultLocale: n, path: r } = e, o = new Headers({ Accept: "application/json", "Content-Type": "application/json" });
41326
+ function i(s) {
41327
+ return fetch(`${r}/${s.locale}.json`, { headers: o, method: "get" }).then((l) => l.json()).then((l) => l.reduce(
41331
41328
  (u, d) => ({
41332
41329
  ...u,
41333
41330
  [d.lang]: {
@@ -41338,12 +41335,20 @@ function yge(e) {
41338
41335
  {}
41339
41336
  ));
41340
41337
  }
41341
- return Promise.all([i(), s()]).then((l) => {
41342
- const [u, d] = l;
41343
- function f(h) {
41344
- return re.get(d, h, {});
41338
+ return Promise.all(t.map(i)).then(
41339
+ (s) => re.reduce(
41340
+ s,
41341
+ (l, u) => ({
41342
+ ...l,
41343
+ ...u
41344
+ }),
41345
+ {}
41346
+ )
41347
+ ).then((s) => {
41348
+ function l(u) {
41349
+ return re.get(s, u, {});
41345
41350
  }
41346
- return P3(f, t, u, {
41351
+ return P3(l, n, t, {
41347
41352
  allowMissing: !0
41348
41353
  });
41349
41354
  });
Binary file