forked from sombochea/verdaccio-ui
feat(de-translations): added de-DE translations to the UI (#441)
This commit is contained in:
parent
0abe1ef41c
commit
e27d59bff7
@ -4,6 +4,7 @@ import { initReactI18next } from 'react-i18next';
|
|||||||
import translationEN from './translations/en-US.json';
|
import translationEN from './translations/en-US.json';
|
||||||
import translationPT from './translations/pt-BR.json';
|
import translationPT from './translations/pt-BR.json';
|
||||||
import translationES from './translations/es-ES.json';
|
import translationES from './translations/es-ES.json';
|
||||||
|
import translationDE from './translations/de-DE.json';
|
||||||
|
|
||||||
i18n
|
i18n
|
||||||
// pass the i18n instance to react-i18next.
|
// pass the i18n instance to react-i18next.
|
||||||
@ -14,7 +15,7 @@ i18n
|
|||||||
// in case window.VEDACCIO_LANGUAGE is undefined,it will fall back to 'en-US'
|
// in case window.VEDACCIO_LANGUAGE is undefined,it will fall back to 'en-US'
|
||||||
lng: window?.__VERDACCIO_BASENAME_UI_OPTIONS?.language,
|
lng: window?.__VERDACCIO_BASENAME_UI_OPTIONS?.language,
|
||||||
fallbackLng: 'en-US',
|
fallbackLng: 'en-US',
|
||||||
whitelist: ['en-US', 'pt-BR', 'es-ES'],
|
whitelist: ['en-US', 'pt-BR', 'es-ES', 'de-DE'],
|
||||||
load: 'currentOnly',
|
load: 'currentOnly',
|
||||||
resources: {
|
resources: {
|
||||||
'en-US': {
|
'en-US': {
|
||||||
@ -26,6 +27,9 @@ i18n
|
|||||||
'es-ES': {
|
'es-ES': {
|
||||||
translation: translationES,
|
translation: translationES,
|
||||||
},
|
},
|
||||||
|
'de-DE': {
|
||||||
|
translation: translationDE,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
debug: false,
|
debug: false,
|
||||||
interpolation: {
|
interpolation: {
|
||||||
|
138
i18n/translations/de-DE.json
Normal file
138
i18n/translations/de-DE.json
Normal file
@ -0,0 +1,138 @@
|
|||||||
|
{
|
||||||
|
"copy-to-clipboard": "In die Zwischenablage kopieren",
|
||||||
|
"author-anonymous": "Anonymus",
|
||||||
|
"action-bar-action": {
|
||||||
|
"visit-home-page": "Zur Homepage",
|
||||||
|
"open-an-issue": "Einen Fehler melden",
|
||||||
|
"download-tarball": "Archiv (Tarball) herunterladen"
|
||||||
|
},
|
||||||
|
"dialog": {
|
||||||
|
"registry-info": {
|
||||||
|
"title": "Registrierungsinformationen"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"header": {
|
||||||
|
"documentation": "Dokumentation",
|
||||||
|
"registry-info": "Registrierungsinformationen",
|
||||||
|
"greetings": "Hallo "
|
||||||
|
},
|
||||||
|
"search": {
|
||||||
|
"packages": "Pakete suchen"
|
||||||
|
},
|
||||||
|
"auto-complete": {
|
||||||
|
"loading": "wird geladen...",
|
||||||
|
"no-results-found": "Kein Ergebnis gefunden"
|
||||||
|
},
|
||||||
|
"tab": {
|
||||||
|
"uplinks": "Uplinks",
|
||||||
|
"versions": "Versionen",
|
||||||
|
"dependencies": "Abhängigkeiten",
|
||||||
|
"readme": "Liesmich"
|
||||||
|
},
|
||||||
|
"uplinks": {
|
||||||
|
"title": "Uplinks",
|
||||||
|
"no-items": "{{name}} hat keine Uplinks."
|
||||||
|
},
|
||||||
|
"versions": {
|
||||||
|
"current-tags": "Aktuelle Tags",
|
||||||
|
"version-history": "Versionsgeschichte",
|
||||||
|
"not-available": "Nicht verfügbar"
|
||||||
|
},
|
||||||
|
"package": {
|
||||||
|
"published-on": "Veröffentlicht am {{time}} •",
|
||||||
|
"version": "v{{version}}",
|
||||||
|
"visit-home-page": "Zur Homepage",
|
||||||
|
"homepage": "Homepage",
|
||||||
|
"open-an-issue": "Einen Fehler melden",
|
||||||
|
"bugs": "Fehler",
|
||||||
|
"download": "{{what}} herunterladen",
|
||||||
|
"the-tar-file": "die tar-Datei",
|
||||||
|
"tarball": "Archiv (Tarball)"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"has-no-dependencies": "{{package}} hat keine Abhängigkeiten",
|
||||||
|
"dependency-block": "{{package}}@{{version}}"
|
||||||
|
},
|
||||||
|
"form": {
|
||||||
|
"username": "Benutzername",
|
||||||
|
"password": "Passwort"
|
||||||
|
},
|
||||||
|
"form-placeholder": {
|
||||||
|
"username": "Dein Benutzername",
|
||||||
|
"password": "Dein sicheres Passwort"
|
||||||
|
},
|
||||||
|
"form-validation": {
|
||||||
|
"required-field": "Dieses Feld ist erforderlich",
|
||||||
|
"required-min-length": "Dieses Feld erfordert eine Mindestlänge von {{length}}",
|
||||||
|
"unable-to-sign-in": "Anmeldung nicht möglich",
|
||||||
|
"username-or-password-cant-be-empty": "Benutzername und Passwort dürfen nicht leer sein!"
|
||||||
|
},
|
||||||
|
"help": {
|
||||||
|
"title": "Noch kein Paket publiziert.",
|
||||||
|
"sub-title": "Um dein erstes Paket einfach zu publizieren:",
|
||||||
|
"first-step": "1. Einloggen",
|
||||||
|
"first-step-command-line": "npm adduser --registry {{registryUrl}}",
|
||||||
|
"second-step": "2. Publizieren",
|
||||||
|
"second-step-command-line": "npm publish --registry {{registryUrl}}",
|
||||||
|
"third-step": "3. Diese Seite aktualisieren."
|
||||||
|
},
|
||||||
|
"sidebar": {
|
||||||
|
"detail": {
|
||||||
|
"latest-version": "Letzte v{{version}}",
|
||||||
|
"version": "v{{version}}"
|
||||||
|
},
|
||||||
|
"installation": {
|
||||||
|
"title": "Installierung",
|
||||||
|
"install-using-yarn": "Mit yarn installieren",
|
||||||
|
"install-using-yarn-command": "yarn add {{packageName}}",
|
||||||
|
"install-using-npm": "Mit npm installieren",
|
||||||
|
"install-using-npm-command": "npm install {{packageName}}",
|
||||||
|
"install-using-pnpm": "Mit pnpm installieren",
|
||||||
|
"install-using-pnpm-command": "pnpm install {{packageName}}"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"title": "Repository"
|
||||||
|
},
|
||||||
|
"author": {
|
||||||
|
"title": "Autor(in)"
|
||||||
|
},
|
||||||
|
"distribution": {
|
||||||
|
"title": "Neueste Distribution",
|
||||||
|
"license": "Lizenz",
|
||||||
|
"size": "Größe",
|
||||||
|
"file-count": "Anzahl der Dateien"
|
||||||
|
},
|
||||||
|
"maintainers": {
|
||||||
|
"title": "Maintainer"
|
||||||
|
},
|
||||||
|
"contributors": {
|
||||||
|
"title": "Contributor"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"npm-version": "NPM Version",
|
||||||
|
"node-js": "NODE JS"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"footer": {
|
||||||
|
"powered-by": "Unterstützt von",
|
||||||
|
"made-with-love-on": "Gemacht mit <0>♥</0> in"
|
||||||
|
},
|
||||||
|
"button": {
|
||||||
|
"close": "Schließen",
|
||||||
|
"cancel": "Abbrechen",
|
||||||
|
"login": "Einloggen",
|
||||||
|
"logout": "Ausloggen",
|
||||||
|
"go-to-the-home-page": "Zur Homepage",
|
||||||
|
"learn-more": "Mehr erfahren",
|
||||||
|
"fund-this-package": "Dieses Paket <0>finanzieren</0>"
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"unspecific": "Etwas ist schief gelaufen.",
|
||||||
|
"404": {
|
||||||
|
"page-not-found": "404 - Seite nicht gefunden",
|
||||||
|
"sorry-we-could-not-find-it": "Entschuldigung, wir konnten es nicht finden..."
|
||||||
|
},
|
||||||
|
"app-context-not-correct-used": "Der App-Kontext wurde nicht korrekt verwendet",
|
||||||
|
"package-meta-is-required-at-detail-context": "packageMeta wird bei DetailContext benötigt"
|
||||||
|
}
|
||||||
|
}
|
@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
"auto-complete": {
|
"auto-complete": {
|
||||||
"loading": "Loading...",
|
"loading": "Loading...",
|
||||||
"no-results-found": "No results found."
|
"no-results-found": "No results found"
|
||||||
},
|
},
|
||||||
"tab": {
|
"tab": {
|
||||||
"uplinks": "Uplinks",
|
"uplinks": "Uplinks",
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
"auto-complete": {
|
"auto-complete": {
|
||||||
"loading": "Cargando...",
|
"loading": "Cargando...",
|
||||||
"no-results-found": "Sin resultados encontrados."
|
"no-results-found": "Sin resultados encontrados"
|
||||||
},
|
},
|
||||||
"tab": {
|
"tab": {
|
||||||
"uplinks": "Remoto",
|
"uplinks": "Remoto",
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
"auto-complete": {
|
"auto-complete": {
|
||||||
"loading": "Carregando...",
|
"loading": "Carregando...",
|
||||||
"no-results-found": "Nenhum resultado encontrado."
|
"no-results-found": "Nenhum resultado encontrado"
|
||||||
},
|
},
|
||||||
"tab": {
|
"tab": {
|
||||||
"uplinks": "Uplinks",
|
"uplinks": "Uplinks",
|
||||||
|
@ -32,6 +32,18 @@ function loadDayJSLocale() {
|
|||||||
dayjs.locale('pt-br');
|
dayjs.locale('pt-br');
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'de':
|
||||||
|
{
|
||||||
|
require('dayjs/locale/de');
|
||||||
|
dayjs.locale('de');
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'es-es':
|
||||||
|
{
|
||||||
|
require('dayjs/locale/es');
|
||||||
|
dayjs.locale('es');
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,6 @@ export default {
|
|||||||
new HTMLWebpackPlugin({
|
new HTMLWebpackPlugin({
|
||||||
__UI_OPTIONS: JSON.stringify({
|
__UI_OPTIONS: JSON.stringify({
|
||||||
base: new URL('/', 'https://localhost:4872'),
|
base: new URL('/', 'https://localhost:4872'),
|
||||||
language: 'es-ES',
|
|
||||||
}),
|
}),
|
||||||
title: 'Verdaccio Dev UI',
|
title: 'Verdaccio Dev UI',
|
||||||
scope: '',
|
scope: '',
|
||||||
|
Loading…
Reference in New Issue
Block a user