[IMP] website: make translation components extensible

It is not common, but we sometimes need to modify translation components
in place. The goal is to have a mechanism to change translation
components and all future/present instances

closes odoo/odoo#99719

X-original-commit: 87f98e6bb82cb2319d7f923b838085befd823f72
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
Roy Le
2022-09-08 01:08:01 +02:00
committed by Benoit Socias
parent 10c5a16cd4
commit 8dd0aa839d
@@ -8,7 +8,7 @@ const { useEffect, useRef, Component } = owl;
const localStorageNoDialogKey = 'website_translator_nodialog';
class AttributeTranslateDialog extends Component {
export class AttributeTranslateDialog extends Component {
setup() {
this.title = this.env._t("Translate Attribute");
@@ -40,7 +40,7 @@ class AttributeTranslateDialog extends Component {
AttributeTranslateDialog.components = { WebsiteDialog };
AttributeTranslateDialog.template = 'website.AttributeTranslateDialog';
class TranslatorInfoDialog extends Component {
export class TranslatorInfoDialog extends Component {
setup() {
this.strongOkButton = this.env._t("Ok, never show me this again");
this.okButton = this.env._t("Ok");