optimized-react-component-library-xyz123 0.1.112 → 0.1.113

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/dist/index.js CHANGED
@@ -3170,7 +3170,7 @@ var ValidationErrorSummaryList = ({
3170
3170
  validationErrorsList,
3171
3171
  formQuestions,
3172
3172
  activatedLanguage,
3173
- summaryText = "Du beh\xF6ver \xE5tg\xE4rda {count} {plural}"
3173
+ summaryText = activatedLanguage === "sv" ? "Du beh\xF6ver \xE5tg\xE4rda {count} {plural}" : "You need to adjust {count} {plural}"
3174
3174
  }) => {
3175
3175
  console.log(formQuestions);
3176
3176
  console.log(validationErrorsList);
@@ -3207,7 +3207,7 @@ var ValidationErrorSummaryList = ({
3207
3207
  if (!validationErrorsList.length) return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, {});
3208
3208
  const filteredIds = filterIdsByGroupCheck(validationErrorsList, formQuestions);
3209
3209
  const count = filteredIds.length;
3210
- const title = summaryText.replace("{count}", count.toString()).replace("{plural}", count === 1 ? "sak" : "saker");
3210
+ const title = summaryText.replace("{count}", count.toString()).replace("{plural}", activatedLanguage === "sv" ? count === 1 ? "sak" : "saker" : count === 1 ? "thing" : "things");
3211
3211
  function getQuestionLabelById(id) {
3212
3212
  var _a;
3213
3213
  const found = formQuestions.find((item) => item.id === id);