mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-21 15:25:22 +03:00
Fix for firmware flasher
This commit is contained in:
parent
fd0afd1456
commit
3cb6862116
1 changed files with 3 additions and 0 deletions
|
@ -42,6 +42,9 @@ i18n.getMessage = function(messageID, parameters) {
|
|||
var translatedString = i18next.t(messageID + '.message');
|
||||
|
||||
if (parameters !== undefined) {
|
||||
if (parameters.constructor !== Array) {
|
||||
parameters = [parameters];
|
||||
}
|
||||
parameters.forEach(function(element, index) {
|
||||
translatedString = translatedString.replace('$' + (index + 1), element);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue