mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
localization can now replace placeholder attr
This commit is contained in:
parent
ef2e8086d5
commit
20e2995fb4
1 changed files with 7 additions and 0 deletions
|
@ -28,5 +28,12 @@ function localize() {
|
|||
element.addClass('i18n_value-replaced');
|
||||
});
|
||||
|
||||
$('[i18n_placeholder]:not(.i18n_placeholder-replaced').each(function() {
|
||||
var element = $(this);
|
||||
|
||||
element.attr('placeholder', translate(element.attr('i18n_placeholder')));
|
||||
element.addClass('i18n_placeholder-replaced');
|
||||
});
|
||||
|
||||
return localized;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue