Order of parameters is wrong

Created on 21 December 2023, 6 months ago
Updated 16 January 2024, 5 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.69.0 2024