Public release from ruodoo-project: 19.0 - 2026-08-30 21:16:35 UTC
This commit is contained in:
13
translation_helper/static/src/env.js
Normal file
13
translation_helper/static/src/env.js
Normal file
@@ -0,0 +1,13 @@
|
||||
/** @odoo-module **/
|
||||
import * as envModule from "@web/env";
|
||||
import {patch} from "@web/core/utils/patch";
|
||||
|
||||
const originalMakeEnv = envModule.makeEnv;
|
||||
|
||||
patch(envModule, {
|
||||
async makeEnv() {
|
||||
const env = await originalMakeEnv(...arguments);
|
||||
env.translate = odoo.translate;
|
||||
return env;
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user