diff --git a/docs/owl.js b/docs/owl.js index 0b67c66d1..6dd51874a 100644 --- a/docs/owl.js +++ b/docs/owl.js @@ -4594,7 +4594,12 @@ class CodeGenerator { * "onClick.bind" "onClick" "onClick: bind(ctx, ctx['onClick'])" */ formatProp(name, value) { - value = this.captureExpression(value); + if (name.endsWith(".translate")) { + value = toStringExpression(this.translateFn(value)); + } + else { + value = this.captureExpression(value); + } if (name.includes(".")) { let [_name, suffix] = name.split("."); name = _name; @@ -4603,6 +4608,7 @@ class CodeGenerator { value = `(${value}).bind(this)`; break; case "alike": + case "translate": break; default: throw new OwlError("Invalid prop suffix"); @@ -5546,7 +5552,7 @@ function compile(template, options = {}) { } // do not modify manually. This file is generated by the release script. -const version = "2.2.11"; +const version = "2.3.0"; // ----------------------------------------------------------------------------- // Scheduler @@ -5975,6 +5981,6 @@ TemplateSet.prototype._compileTemplate = function _compileTemplate(name, templat export { App, Component, EventBus, OwlError, __info__, batched, blockDom, loadFile, markRaw, markup, mount, onError, onMounted, onPatched, onRendered, onWillDestroy, onWillPatch, onWillRender, onWillStart, onWillUnmount, onWillUpdateProps, reactive, status, toRaw, useChildSubEnv, useComponent, useEffect, useEnv, useExternalListener, useRef, useState, useSubEnv, validate, validateType, whenReady, xml }; -__info__.date = '2024-06-17T13:31:12.099Z'; -__info__.hash = 'e7f405c'; +__info__.date = '2024-07-25T13:13:44.371Z'; +__info__.hash = '0cde4b8'; __info__.url = 'https://github.com/odoo/owl'; diff --git a/package-lock.json b/package-lock.json index b2f8799c1..6d719c2c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@odoo/owl", - "version": "2.2.11", + "version": "2.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 971839967..64650fb1d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@odoo/owl", - "version": "2.2.11", + "version": "2.3.0", "description": "Odoo Web Library (OWL)", "main": "dist/owl.cjs.js", "module": "dist/owl.es.js", diff --git a/src/version.ts b/src/version.ts index 3f519f1c5..f73809fe7 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,2 +1,2 @@ // do not modify manually. This file is generated by the release script. -export const version = "2.2.11"; +export const version = "2.3.0";