@alma/widgets 3.0.3 → 3.0.4

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.
@@ -1526,12 +1526,17 @@
1526
1526
 
1527
1527
  (function (Locale) {
1528
1528
  Locale["en"] = "en";
1529
+ Locale["fr-FR"] = "fr-FR";
1529
1530
  Locale["fr"] = "fr";
1531
+ Locale["de-DE"] = "de-DE";
1530
1532
  Locale["de"] = "de";
1531
1533
  Locale["it"] = "it";
1534
+ Locale["it-IT"] = "it-IT";
1532
1535
  Locale["es"] = "es";
1533
- Locale["nl"] = "nl";
1536
+ Locale["es-ES"] = "es-ES";
1534
1537
  Locale["pt"] = "pt";
1538
+ Locale["pt-PT"] = "pt-PT";
1539
+ Locale["nl"] = "nl";
1535
1540
  Locale["nl-NL"] = "nl-NL";
1536
1541
  Locale["nl-BE"] = "nl-BE";
1537
1542
  })(Locale || (Locale = {}));
@@ -6868,7 +6873,11 @@
6868
6873
  };
6869
6874
 
6870
6875
  var getTranslationsByLocale = function getTranslationsByLocale(locale) {
6871
- switch (locale) {
6876
+ // A CMS plugin can add LCID format like : 'fr-FR' instead of 'fr'.
6877
+ // Instead of specifying all possibilities we just remove the last part of the string.
6878
+ var merchantLocale = locale.slice(0, 2);
6879
+
6880
+ switch (merchantLocale) {
6872
6881
  case Locale.fr:
6873
6882
  return messagesFR;
6874
6883
 
@@ -6885,8 +6894,6 @@
6885
6894
  return messagesPT;
6886
6895
 
6887
6896
  case Locale.nl:
6888
- case Locale['nl-BE']:
6889
- case Locale['nl-NL']:
6890
6897
  return messagesNL;
6891
6898
 
6892
6899
  case Locale.en:
@@ -15105,7 +15112,7 @@
15105
15112
  return /*#__PURE__*/react.createElement("div", {
15106
15113
  className: classnames(s.container, STATIC_CUSTOMISATION_CLASSES.summary),
15107
15114
  "data-testid": "modal-summary"
15108
- }, /*#__PURE__*/react.createElement("h3", {
15115
+ }, /*#__PURE__*/react.createElement("div", {
15109
15116
  className: classnames(s.total, STATIC_CUSTOMISATION_CLASSES.scheduleTotal)
15110
15117
  }, /*#__PURE__*/react.createElement(MemoizedFormattedMessage, {
15111
15118
  tagName: "div",