@freelog/tools-lib 0.1.199 → 0.2.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.
@@ -3794,6 +3794,13 @@ var I18nNext = /*#__PURE__*/function () {
3794
3794
  _proto.tJSXElement = function tJSXElement(key, options) {
3795
3795
  return htmlReactParser(i18next.t(key.trim(), options));
3796
3796
  };
3797
+ _proto.tAuto = function tAuto(key, options) {
3798
+ var i18n_str = i18next.t(key.trim(), options);
3799
+ if (!i18n_str.startsWith('<div class="i18n"')) {
3800
+ return i18n_str;
3801
+ }
3802
+ return htmlReactParser(i18n_str);
3803
+ };
3797
3804
  _proto.changeLanguage = function changeLanguage(lng) {
3798
3805
  // return i18next.changeLanguage(lng);
3799
3806
  // window.localStorage.setItem(localStorage_i18nextLng_key, lng)