@forsakringskassan/docs-generator 2.38.6 → 2.39.1

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.
@@ -18524,7 +18524,11 @@ const bindMemberFunctions = inst => {
18524
18524
  });
18525
18525
  };
18526
18526
  const SUPPORT_NOTICE_KEY = '__i18next_supportNoticeShown';
18527
- const getSupportNoticeShown = () => typeof globalThis !== 'undefined' && !!globalThis[SUPPORT_NOTICE_KEY];
18527
+ const getSupportNoticeShown = () => {
18528
+ if (typeof globalThis !== 'undefined' && !!globalThis[SUPPORT_NOTICE_KEY]) return true;
18529
+ if (typeof process !== 'undefined' && process.env && process.env.I18NEXT_NO_SUPPORT_NOTICE) return true;
18530
+ return false;
18531
+ };
18528
18532
  const setSupportNoticeShown = () => {
18529
18533
  if (typeof globalThis !== 'undefined') globalThis[SUPPORT_NOTICE_KEY] = true;
18530
18534
  };
@@ -18856,21 +18860,20 @@ class I18n extends EventEmitter {
18856
18860
  o.lngs = o.lngs || fixedT.lngs;
18857
18861
  o.ns = o.ns || fixedT.ns;
18858
18862
  if (o.keyPrefix !== '') o.keyPrefix = o.keyPrefix || keyPrefix || fixedT.keyPrefix;
18863
+ const selectorOpts = {
18864
+ ...this.options,
18865
+ ...o
18866
+ };
18867
+ if (typeof o.keyPrefix === 'function') o.keyPrefix = keysFromSelector(o.keyPrefix, selectorOpts);
18859
18868
  const keySeparator = this.options.keySeparator || '.';
18860
18869
  let resultKey;
18861
18870
  if (o.keyPrefix && Array.isArray(key)) {
18862
18871
  resultKey = key.map(k => {
18863
- if (typeof k === 'function') k = keysFromSelector(k, {
18864
- ...this.options,
18865
- ...opts
18866
- });
18872
+ if (typeof k === 'function') k = keysFromSelector(k, selectorOpts);
18867
18873
  return `${o.keyPrefix}${keySeparator}${k}`;
18868
18874
  });
18869
18875
  } else {
18870
- if (typeof key === 'function') key = keysFromSelector(key, {
18871
- ...this.options,
18872
- ...opts
18873
- });
18876
+ if (typeof key === 'function') key = keysFromSelector(key, selectorOpts);
18874
18877
  resultKey = o.keyPrefix ? `${o.keyPrefix}${keySeparator}${key}` : key;
18875
18878
  }
18876
18879
  return this.t(resultKey, o);
@@ -69703,4 +69706,4 @@ var typescript = /*#__PURE__*/Object.freeze({
69703
69706
  });
69704
69707
 
69705
69708
  export { HighlightJS as H, MarkdownIt as M, Ze$a as Z, resolveConfig as a, createTwoFilesPatch$1 as b, createSyncFn as c, dedent$1 as d, deflist_plugin as e, format2 as f, closest as g, distance as h, fm$2 as i, isCI as j, cliProgress as k, tinylr as l, moduleImporter as m, createInstance as n, fse as o, inter as p, runAsWorker as r, ts$7 as t, watch$1 as w };
69706
- //# sourceMappingURL=vendor-DgbU8VP_.mjs.map
69709
+ //# sourceMappingURL=vendor-KZo5HqAF.mjs.map