Order of parameters is wrong

Created on 21 December 2023, about 1 year ago
Updated 16 January 2024, 12 months ago

Problem/Motivation

validateForm in AutoAlterTranslateSettingsForm does the following request

$request = $this->azuretranslate->gettranslation('Please translate this text', $endpoint, $api_key, $region, "en", "de");

Steps to reproduce

Form submit at /admin/config/media/auto_alter/translate

Proposed resolution

But the order of parameters is wrong, it should be
public function gettranslation(string $inputStr, $region = FALSE, $endpoint = FALSE, $api_key = FALSE, $fromLanguage = "en", $toLanguage = FALSE

Remaining tasks

NA

User interface changes

NA

API changes

NA

Data model changes

NA

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇵🇰Pakistan monymirza Islamabad

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024