mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] qweb: expose translatable attributes
This commit allows owl users to add any attribute to the list of translatable attributes. closes #903
This commit is contained in:
@@ -3943,6 +3943,20 @@ exports[`t-set value priority 1`] = `
|
||||
}"
|
||||
`;
|
||||
|
||||
exports[`translation support can add additional attributes to the list of translatable attributes 1`] = `
|
||||
"function anonymous(context, extra
|
||||
) {
|
||||
// Template name: \\"test\\"
|
||||
let h = this.h;
|
||||
let _1 = 'word';
|
||||
let _2 = 'mot';
|
||||
let c3 = [], p3 = {key:3,attrs:{tomato: _1,potato: _2}};
|
||||
let vn3 = h('div', p3, c3);
|
||||
c3.push({text: \`text\`});
|
||||
return vn3;
|
||||
}"
|
||||
`;
|
||||
|
||||
exports[`translation support can translate node content 1`] = `
|
||||
"function anonymous(context, extra
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user