Skip to content
Snippets Groups Projects
Commit 238f275e authored by Aaron Bohy's avatar Aaron Bohy
Browse files

[FIX] web: set "data-tooltip" as translatable attr in owl


With this, tooltips specified with the "data-tooltip" attribute in
owl templates will be translated.

closes odoo/odoo#78007

Signed-off-by: default avatarGéry Debongnie (ged) <ged@openerp.com>
parent 913c33c3
Branches
Tags
No related merge requests found
......@@ -10,6 +10,9 @@ import { session } from "@web/session";
export const localizationService = {
dependencies: ["user"],
start: async (env, { user }) => {
// add "data-toolip" to the list of translatable attributes in owl templates
owl.config.translatableAttributes.push("data-tooltip");
const cacheHashes = session.cache_hashes || {};
const translationsHash = cacheHashes.translations || new Date().getTime().toString();
const lang = user.lang || null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment