[FIX] im_livechat: fix env._t leftover

Commit [1] replaced all uses of env._t by calling the _t function
directly, and removed _t from the env. This commit adapts a
forgotten occurrence.

c07181b20b

opw 3664779

closes odoo/odoo#149176

Related: odoo/enterprise#54195
Signed-off-by: Samuel Degueldre (sad) <sad@odoo.com>
This commit is contained in:
Aaron Bohy
2024-01-12 12:50:34 +00:00
parent ba7856e942
commit d8b9f70f22
+2 -1
View File
@@ -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,
});
})();