der tenant admin hat eine neue, mobil unterstützende UI, login redirect funktioniert, typescript fehler wurden bereinigt. Neue Blog Posts von ChatGPT eingebaut, übersetzt von Gemini 2.5
This commit is contained in:
@@ -19,7 +19,15 @@ export function DashboardLanguageSwitcher() {
|
||||
const { locale, supportedLocales, translations } = page.props;
|
||||
const locales = supportedLocales && supportedLocales.length > 0 ? supportedLocales : ['de', 'en'];
|
||||
const activeLocale = locales.includes(locale as string) && typeof locale === 'string' ? locale : locales[0];
|
||||
const languageCopy = (translations?.dashboard?.language_switcher as Record<string, string | undefined>) ?? {};
|
||||
const dashboardTranslations =
|
||||
translations && typeof translations.dashboard === 'object' && translations.dashboard !== null
|
||||
? (translations.dashboard as Record<string, unknown>)
|
||||
: null;
|
||||
const languageSwitcherTranslations =
|
||||
dashboardTranslations && typeof dashboardTranslations.language_switcher === 'object'
|
||||
? (dashboardTranslations.language_switcher as Record<string, string | undefined>)
|
||||
: {};
|
||||
const languageCopy = languageSwitcherTranslations ?? {};
|
||||
const label = languageCopy.label ?? 'Sprache';
|
||||
const changeLabel = languageCopy.change ?? 'Sprache wechseln';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user