Merge branch 'develop' into 'main'

chore: Перевод виджета выбора альтернативных вариантов ChatGPT

See merge request productteam/talismanplatform/modules/odoo_17.0.1/web_editor!2
This commit is contained in:
Старков Евгений Федорович 2024-06-18 14:57:11 +00:00
commit 7a631bcfc6
2 changed files with 303 additions and 389 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@
import { ChatGPTDialog } from '@web_editor/js/wysiwyg/widgets/chatgpt_dialog'; import { ChatGPTDialog } from '@web_editor/js/wysiwyg/widgets/chatgpt_dialog';
import { useState, status } from "@odoo/owl"; import { useState, status } from "@odoo/owl";
import { _t } from "@web/core/l10n/translation";
export class ChatGPTAlternativesDialog extends ChatGPTDialog { export class ChatGPTAlternativesDialog extends ChatGPTDialog {
static template = 'web_edior.ChatGPTAlternativesDialog'; static template = 'web_edior.ChatGPTAlternativesDialog';
@ -13,12 +14,12 @@ export class ChatGPTAlternativesDialog extends ChatGPTDialog {
}; };
static defaultProps = { static defaultProps = {
alternativesModes: { alternativesModes: {
correct: 'Correct', correct: _t('Correct'),
short: 'Shorten', short: _t('Shorten'),
long: 'Lengthen', long: _t('Lengthen'),
friendly: 'Friendly', friendly: _t('Friendly'),
professional: 'Professional', professional: _t('Professional'),
persuasive: 'Persuasive', persuasive: _t('Persuasive'),
}, },
numberOfAlternatives: 3, numberOfAlternatives: 3,
}; };