dhre-ui-kit 0.0.380 → 0.0.381

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/lib/index.mjs CHANGED
@@ -3770,8 +3770,8 @@ const Toast = React.forwardRef(
3770
3770
  const res = await translate(message, { to: "ar" });
3771
3771
  setTranslatedText(res.text);
3772
3772
  } catch (error) {
3773
+ setTranslatedText(JSON.stringify(error));
3773
3774
  console.error("Translation error:", error);
3774
- setTranslatedText("error");
3775
3775
  }
3776
3776
  };
3777
3777
  translateText();