From 518bbbaaa8092b7ab7c539237b4dacd2c120aa82 Mon Sep 17 00:00:00 2001 From: tsm-odoo Date: Mon, 13 Nov 2023 12:05:44 +0100 Subject: [PATCH] [FIX] im_livechat: fix translations for embed live chat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, the templates of the embed live chat were not translated. This is due to the live chat embed app being mounted without giving any `translateFn`. This commit fixes this issue. opw-3509309 closes odoo/odoo#141869 X-original-commit: 27aa2cb0ad1d279f72838000932d94e91cb436f3 Signed-off-by: Alexandre Kühn (aku) --- addons/im_livechat/static/src/embed/external/boot.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/im_livechat/static/src/embed/external/boot.js b/addons/im_livechat/static/src/embed/external/boot.js index f28a0727a8e..d347b157689 100644 --- a/addons/im_livechat/static/src/embed/external/boot.js +++ b/addons/im_livechat/static/src/embed/external/boot.js @@ -24,6 +24,7 @@ import { session } from "@web/session"; await mount(MainComponentsContainer, target, { env, templates, + translateFn: env._t, dev: env.debug, }); })();