improvements

This commit is contained in:
Myzel394 2022-11-07 13:56:22 +01:00
parent 435bbf71f2
commit 0f963d0383
6 changed files with 14 additions and 14 deletions

View File

@ -254,7 +254,7 @@
"components": {
"NavigationButton": {
"overview": "Überblibkc",
"overview": "Überblick",
"aliases": "Aliase",
"reports": "Berichte",
"settings": "Einstellungen"

View File

@ -22,9 +22,11 @@ export default function LanguageButton(): ReactElement {
const {isLocked, showDialog} = useContext(LockNavigationContext)
const {i18n} = useTranslation()
console.log(i18n.resolvedLanguage, SORTED_ENTRIES)
return (
<Select
value={i18n.language}
value={i18n.resolvedLanguage}
fullWidth
size="small"
renderValue={value => LANGUAGE_NAME_MAP[value as Language]}

View File

@ -16,8 +16,7 @@ i18n.use(HttpApi)
.use(initReactI18next)
.init({
debug: isDev,
fallbackLng: "en",
load: "languageOnly",
fallbackLng: "en-US",
backend: {
loadPath: "/locales/{{lng}}/{{ns}}.json",
},

View File

@ -46,7 +46,7 @@ export default function AuthenticatedRoute(): ReactElement {
justifyContent="space-between"
alignItems="center"
>
<Grid item xs={12} sm={3} md={2}>
<Grid item xs={12} sm={3}>
<Box bgcolor={theme.palette.background.paper}>
<List component="nav">
{sections.map(key => (
@ -57,7 +57,7 @@ export default function AuthenticatedRoute(): ReactElement {
</List>
</Box>
</Grid>
<Grid item xs={12} sm={9} md={10} height="100%">
<Grid item xs={12} sm={9} height="100%">
<Grid
container
direction="column"
@ -77,6 +77,8 @@ export default function AuthenticatedRoute(): ReactElement {
container
spacing={2}
justifyContent="center"
alignItems="center"
direction="row"
marginBottom={2}
>
<Grid item>

View File

@ -14,25 +14,22 @@ const APP_LINK_MAP: Record<string, OSUrls> = {
android: createUrl("mail.google.com", "com.google.android.gm"),
},
"gmx.net": {
android: createUrl("gmx.net", "de.gmx.mobile.android.mail"),
android: createUrl("gmx.net", "de-DE.gmx.mobile.android.mail"),
},
"web.de": {
android: createUrl("web.de", "de.web.mobile.android.mail"),
android: createUrl("web.de", "de-DE.web.mobile.android.mail"),
},
"t-online.de": {
android: createUrl("t-online.de", "de.telekom.mail"),
android: createUrl("t-online.de", "de-DE.telekom.mail"),
},
"magenta.de": {
android: createUrl("t-online.de", "de.telekom.mail"),
android: createUrl("t-online.de", "de-DE.telekom.mail"),
},
"outlook.com": {
android: createUrl("outlook.com", "com.microsoft.office.outlook"),
},
"yahoo.com": {
android: createUrl(
"mail.yahoo.com",
"com.yahoo.mobile.client.android.mai",
),
android: createUrl("mail.yahoo.com", "com.yahoo.mobile.client.android.mai"),
},
}