Remove last usage of auth/branding route

This commit is contained in:
Johannes Zellner
2025-07-14 11:11:57 +02:00
parent a7bf22cafe
commit 7adae569f5
3 changed files with 1 additions and 22 deletions

View File

@@ -35,15 +35,7 @@ async function main() {
// load at least fallback english
await loadLanguage('en');
let locale = window.localStorage.NG_TRANSLATE_LANG_KEY;
if (!locale) {
try {
const res = await fetcher.get(`${API_ORIGIN}/api/v1/auth/branding`);
locale = res.body.language;
} catch (error) {
console.error('Failed to get branding info for translation.', error);
}
}
const locale = window.localStorage.NG_TRANSLATE_LANG_KEY || window.cloudron.language;
if (locale && locale !== 'en') {
await loadLanguage(locale);