@chekinapp/ui 0.0.64 → 0.0.65
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.cjs +51 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -5386,6 +5386,21 @@ var uiKitI18nResources = {
|
|
|
5386
5386
|
pt: { translation: translation_default6 }
|
|
5387
5387
|
};
|
|
5388
5388
|
|
|
5389
|
+
// src/i18n/config.ts
|
|
5390
|
+
import i18next from "i18next";
|
|
5391
|
+
import { initReactI18next } from "react-i18next";
|
|
5392
|
+
var i18n = i18next.createInstance();
|
|
5393
|
+
i18n.use(initReactI18next).init({
|
|
5394
|
+
resources: uiKitI18nResources,
|
|
5395
|
+
fallbackLng: "en",
|
|
5396
|
+
interpolation: {
|
|
5397
|
+
escapeValue: false
|
|
5398
|
+
},
|
|
5399
|
+
returnNull: false,
|
|
5400
|
+
fallbackNS: "translation",
|
|
5401
|
+
load: "languageOnly"
|
|
5402
|
+
});
|
|
5403
|
+
|
|
5389
5404
|
// src/large-modal/LargeModal.tsx
|
|
5390
5405
|
import { X as X2 } from "lucide-react";
|
|
5391
5406
|
import { jsx as jsx66, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
@@ -13798,7 +13813,7 @@ function getErrorMessage(error) {
|
|
|
13798
13813
|
}
|
|
13799
13814
|
|
|
13800
13815
|
// src/lib/toastResponseError.tsx
|
|
13801
|
-
import
|
|
13816
|
+
import i18next2 from "i18next";
|
|
13802
13817
|
import { jsx as jsx153, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
13803
13818
|
function addSupportEmailToMessage(message, prefixText) {
|
|
13804
13819
|
if (typeof message !== "string") {
|
|
@@ -13807,7 +13822,7 @@ function addSupportEmailToMessage(message, prefixText) {
|
|
|
13807
13822
|
const builtMessage = `${prefixText ? `${prefixText} ` : ""}${message}`;
|
|
13808
13823
|
return /* @__PURE__ */ jsxs97("div", { children: [
|
|
13809
13824
|
/* @__PURE__ */ jsx153("div", { children: builtMessage }),
|
|
13810
|
-
|
|
13825
|
+
i18next2.t("reach_us_at_email")
|
|
13811
13826
|
] });
|
|
13812
13827
|
}
|
|
13813
13828
|
function toastResponseError(error, options = {}) {
|