Skip to content

Commit

Permalink
Fix locales for newer version of the Authentication extension
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jun 11, 2024
1 parent 15945d9 commit 2032156
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/AuthSchemeItem.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<b-list-group-item button class="auth-method-item flex-column align-items-start" @click="authenticate">
<div class="d-flex w-100 justify-content-between align-items-center">
<strong class="mr-2">{{ $i18n.t(`authentication.schemeTypes.${method.type}`) }}</strong>
<strong class="mr-2">{{ $i18n.t(`authentication.schemeTypes.${method.type}`, method) }}</strong>
<b-badge v-if="!isSupported" variant="danger">{{ $i18n.t("authentication.unsupported") }}</b-badge>
</div>
</b-list-group-item>
Expand Down
2 changes: 1 addition & 1 deletion src/components/HrefActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export default {
await this.$store.dispatch('auth/requestLogin');
}
else {
const name = this.$i18n.t(`authentication.schemeTypes.${method.type}`);
const name = this.$i18n.t(`authentication.schemeTypes.${method.type}`, method);
const message = this.$i18n.t('authentication.unsupportedLong', {method: name});
this.$root.$emit('error', new Error(message), this.$i18n.t('authentication.unsupported'));
}
Expand Down
3 changes: 1 addition & 2 deletions src/locales/de/texts.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@
"password": "Passwort",
"required": "Anmeldung erforderlich",
"schemeTypes": {
"http": "HTTP {scheme}",
"s3": "S3",
"planetaryComputer": "Microsoft Planetary Computer",
"earthdata": "Earthdata",
"signedUrl": "Signierte URL",
"oauth2": "OAuth 2",
"apiKey": "API-Schlüssel",
Expand Down
3 changes: 1 addition & 2 deletions src/locales/en/texts.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@
"password": "Password",
"required": "Authentication required",
"schemeTypes": {
"http": "HTTP {scheme}",
"s3": "S3",
"planetaryComputer": "Microsoft Planetary Computer",
"earthdata": "Earthdata",
"signedUrl": "Signed URL",
"oauth2": "OAuth 2",
"apiKey": "API key",
Expand Down

0 comments on commit 2032156

Please sign in to comment.