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": { "components": {
"NavigationButton": { "NavigationButton": {
"overview": "Überblibkc", "overview": "Überblick",
"aliases": "Aliase", "aliases": "Aliase",
"reports": "Berichte", "reports": "Berichte",
"settings": "Einstellungen" "settings": "Einstellungen"

View File

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

View File

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

View File

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

View File

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