Skip to content

Commit 871dad6

Browse files
committed
[REL] v2.8.0
# v2.8.0 - [FIX] parser: t-esc/t-out vs t-translation* - [IMP] compiler: make human-readable ARIA attributes translatable
1 parent b620502 commit 871dad6

File tree

4 files changed

+18
-9
lines changed

4 files changed

+18
-9
lines changed

docs/owl.js

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3850,7 +3850,16 @@ class CodeTarget {
38503850
return key;
38513851
}
38523852
}
3853-
const TRANSLATABLE_ATTRS = ["label", "title", "placeholder", "alt"];
3853+
const TRANSLATABLE_ATTRS = [
3854+
"alt",
3855+
"aria-label",
3856+
"aria-placeholder",
3857+
"aria-roledescription",
3858+
"aria-valuetext",
3859+
"label",
3860+
"placeholder",
3861+
"title",
3862+
];
38543863
const translationRE = /^(\s*)([\s\S]+?)(\s*)$/;
38553864
class CodeGenerator {
38563865
constructor(ast, options) {
@@ -4968,11 +4977,11 @@ function parseNode(node, ctx) {
49684977
parseTPortal(node, ctx) ||
49694978
parseTCall(node, ctx) ||
49704979
parseTCallBlock(node) ||
4980+
parseTTranslation(node, ctx) ||
4981+
parseTTranslationContext(node, ctx) ||
49714982
parseTEscNode(node, ctx) ||
49724983
parseTOutNode(node, ctx) ||
49734984
parseTKey(node, ctx) ||
4974-
parseTTranslation(node, ctx) ||
4975-
parseTTranslationContext(node, ctx) ||
49764985
parseTSlot(node, ctx) ||
49774986
parseComponent(node, ctx) ||
49784987
parseDOMNode(node, ctx) ||
@@ -5758,7 +5767,7 @@ function compile(template, options = {
57585767
}
57595768

57605769
// do not modify manually. This file is generated by the release script.
5761-
const version = "2.7.0";
5770+
const version = "2.8.0";
57625771

57635772
// -----------------------------------------------------------------------------
57645773
// Scheduler
@@ -6229,6 +6238,6 @@ TemplateSet.prototype._compileTemplate = function _compileTemplate(name, templat
62296238
export { App, Component, EventBus, OwlError, __info__, batched, blockDom, htmlEscape, 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 };
62306239

62316240

6232-
__info__.date = '2025-03-26T12:58:40.935Z';
6233-
__info__.hash = 'e788e36';
6241+
__info__.date = '2025-06-30T12:46:06.424Z';
6242+
__info__.hash = 'b620502';
62346243
__info__.url = 'https://github.com/odoo/owl';

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@odoo/owl",
3-
"version": "2.7.0",
3+
"version": "2.8.0",
44
"description": "Odoo Web Library (OWL)",
55
"main": "dist/owl.cjs.js",
66
"module": "dist/owl.es.js",

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// do not modify manually. This file is generated by the release script.
2-
export const version = "2.7.0";
2+
export const version = "2.8.0";

0 commit comments

Comments
 (0)