mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Don't Camel Case Localization Endpoint
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user