diff --git a/Dockerfile b/Dockerfile
index 912820c..8e7176b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,5 +11,6 @@ FROM gitea.pena/penadevops/container-images/nginx:main as result
WORKDIR /usr/share/nginx/html
COPY --from=build /usr/app/dist/ /usr/share/nginx/html
COPY --from=build /usr/app/widget/widget.js /usr/share/nginx/html/export/pub.js
+COPY --from=build /usr/app/public/locales /usr/share/nginx/html/locales
COPY ./widget_en.js /usr/share/nginx/html/export/pub_en.js
COPY hub.conf /etc/nginx/conf.d/default.conf
diff --git a/src/widget.tsx b/src/widget.tsx
index 653e35b..928d2a4 100644
--- a/src/widget.tsx
+++ b/src/widget.tsx
@@ -1,5 +1,6 @@
import QuizAnswerer from "@/components/QuizAnswerer";
import { createRoot } from "react-dom/client";
+import "./i18n/i18n"; // Инициализация i18n для виджета
// eslint-disable-next-line react-refresh/only-export-components
export * from "./widgets";
@@ -19,7 +20,13 @@ const widget = {
const root = createRoot(element);
- root.render();
+ root.render(
+
+ );
},
};