diff --git a/addons/im_livechat/static/src/embed/external/boot.js b/addons/im_livechat/static/src/embed/external/boot.js index d347b157689..2653ed39566 100644 --- a/addons/im_livechat/static/src/embed/external/boot.js +++ b/addons/im_livechat/static/src/embed/external/boot.js @@ -7,6 +7,7 @@ import { serverUrl } from "@im_livechat/embed/common/livechat_data"; import { mount, whenReady } from "@odoo/owl"; import { templates } from "@web/core/assets"; +import { _t } from "@web/core/l10n/translation"; import { MainComponentsContainer } from "@web/core/main_components_container"; import { registry } from "@web/core/registry"; import { makeEnv, startServices } from "@web/env"; @@ -24,7 +25,7 @@ import { session } from "@web/session"; await mount(MainComponentsContainer, target, { env, templates, - translateFn: env._t, + translateFn: _t, dev: env.debug, }); })();