translate via i18next

This commit is contained in:
Gautier Pelloux-Prayer 2019-02-24 10:21:54 +01:00
parent a8c9bf0c6d
commit f54d72644b
20 changed files with 1410 additions and 155 deletions

View file

@ -9,7 +9,7 @@ BR.RoutingOptions = L.Evented.extend({
for (var i = 0; i < profiles.length; i++) {
var option = document.createElement("option");
option.value = profiles[i];
option.text = profiles[i];
option.text = i18next.t("navbar.profile." + profiles[i]);
profiles_list.appendChild(option);
}
// set default value, used as indicator for empty custom profile