Don't Camel Case Localization Endpoint

This commit is contained in:
Qstick
2020-09-04 23:55:35 -04:00
parent b6f2afb212
commit 579a86a708
7 changed files with 23 additions and 14 deletions

View File

@@ -9,7 +9,7 @@ function getTranslations() {
dataType: 'json',
url: `${window.Radarr.apiRoot}/localization`,
success: function(data) {
localization = data.strings;
localization = data.Strings;
}
};
@@ -34,6 +34,5 @@ export default function translate(key, args = '') {
});
}
const formatedKey = key.charAt(0).toLowerCase() + key.slice(1);
return translations[formatedKey] || key;
return translations[key] || key;
}