Fix translations on login page

This commit is contained in:
Jannik Stehle
2022-09-02 15:07:54 +02:00
parent 983f4c993f
commit 213a68ec69
4 changed files with 12 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
Bugfix: Translations on login page
We've fixed several translations on the login page. Also, the browser language is now being used properly to determine the language.
https://github.com/owncloud/web/issues/7550
https://github.com/owncloud/ocis/pull/4504

View File

@@ -147,8 +147,8 @@ function Login(props) {
margin="normal"
onChange={handleChange('password')}
autoComplete="kopano-account current-password"
placeholder={t("konnect.login.usernameField.label", "Password")}
label={t("konnect.login.usernameField.label", "Password")}
placeholder={t("konnect.login.passwordField.label", "Password")}
label={t("konnect.login.passwordField.label", "Password")}
id="oc-login-password"
{...extraPropsPassword}
/>

View File

@@ -14,9 +14,9 @@ const config = {
uiLocaleLocalStorageName: 'lico.identifier_ui_locale', // Sufficiently unique, set here.
}
const supportedLanguages = locales.map((locale) => {
const supportedLanguages = ['en-GB', 'en', ...locales.map((locale) => {
return locale.locale;
});
})];
const queryUiLocalesDetector: CustomDetector = {
name: 'queryUiLocales',

View File

@@ -32,6 +32,7 @@
},
"login": {
"usernameField": {
"label": "Benutzername",
"placeholder": {
"email": "E-Mail",
"identity": "Identität",
@@ -91,4 +92,4 @@
"message": "Sie sind angemeldet - super!"
}
}
}
}