diff --git a/i18n/config.ts b/i18n/config.ts index 5a2a429bc..d435adabc 100644 --- a/i18n/config.ts +++ b/i18n/config.ts @@ -2,6 +2,7 @@ import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; import translationEN from './translations/en-US.json'; +import translationCS from './translations/cs-CZ.json'; import translationPT from './translations/pt-BR.json'; import translationES from './translations/es-ES.json'; import translationDE from './translations/de-DE.json'; @@ -16,6 +17,9 @@ const languages = { 'en-US': { translation: translationEN, }, + 'cs-CZ': { + translation: translationCS, + }, 'pt-BR': { translation: translationPT, }, @@ -56,7 +60,7 @@ i18n // in case window.VEDACCIO_LANGUAGE is undefined,it will fall back to 'en-US' lng: window?.__VERDACCIO_BASENAME_UI_OPTIONS?.language, fallbackLng: 'en-US', - whitelist: ['en-US', 'pt-BR', 'es-ES', 'de-DE', 'fr-FR', 'zh-CN', 'ja-JP', 'uk-UA', 'km-KH', 'zh-TW'], + whitelist: ['en-US', 'cs-CZ', 'pt-BR', 'es-ES', 'de-DE', 'fr-FR', 'zh-CN', 'ja-JP', 'uk-UA', 'km-KH', 'zh-TW'], load: 'currentOnly', resources: languages, debug: false, diff --git a/i18n/translations/cs-CZ.json b/i18n/translations/cs-CZ.json new file mode 100644 index 000000000..d7770e0e9 --- /dev/null +++ b/i18n/translations/cs-CZ.json @@ -0,0 +1,155 @@ +{ + "copy-to-clipboard": "Zkopírovat do schránky", + "author-anonymous": "Anonymní", + "action-bar-action": { + "visit-home-page": "Navštívit domovskou stránku", + "open-an-issue": "Otevřít otázku", + "download-tarball": "Stáhnout archív (Tar)" + }, + "dialog": { + "registry-info": { + "title": "Informace o registru" + } + }, + "header": { + "documentation": "Dokumentace", + "registry-info": "Informace o registru", + "greetings": "Ahoj " + }, + "search": { + "packages": "Hledat balíčky" + }, + "autoComplete": { + "loading": "Načítání...", + "no-results-found": "Nebyly nalezeny žádné výsledky", + "clear": "Vyčistit", + "expand": "Otevřít", + "collapse": "Zavřít" + }, + "tab": { + "uplinks": "Uplinky", + "versions": "Verze", + "dependencies": "Závislosti", + "readme": "Přečti si mě" + }, + "uplinks": { + "title": "Uplinky", + "no-items": "{{name}} nemá žádné uplinky." + }, + "versions": { + "current-tags": "Aktuální značky", + "version-history": "Historie verzí", + "not-available": "Nedostupné" + }, + "package": { + "published-on": "Zveřejněno v {{time}} •", + "version": "v{{version}}", + "visit-home-page": "Navštívit domovskou stránku", + "homepage": "Domovská stránka", + "open-an-issue": "Otevřít otázku", + "bugs": "Chyby", + "download": "Stáhnout {{what}}", + "the-tar-file": "tar soubor", + "tarball": "Archív (Tar)" + }, + "dependencies": { + "has-no-dependencies": "{{package}} nemá žádné závislosti.", + "dependency-block": "{{package}}@{{version}}" + }, + "form": { + "username": "Uživatelské jméno", + "password": "Heslo" + }, + "form-placeholder": { + "username": "Vaše uživatelské jméno", + "password": "Vaše silné heslo" + }, + "form-validation": { + "required-field": "Toto pole je povinné", + "required-min-length": "Toto pole vyžaduje zadání alespoň {{length}} znaků", + "unable-to-sign-in": "Přihlášení se nezdařilo", + "username-or-password-cant-be-empty": "Uživatelské jméno nebo heslo nemohou být prázdné!" + }, + "help": { + "title": "Zatím nebyl zveřejně žádný balíček.", + "sub-title": "Pro zveřejnění vašeho prvního balíčku proveďte následující:", + "first-step": "1. Přihlašte se", + "first-step-command-line": "npm adduser --registry {{registryUrl}}", + "second-step": "2. Zveřejněte balíček", + "second-step-command-line": "npm publish --registry {{registryUrl}}", + "third-step": "3. Obnovte tuto stránku." + }, + "sidebar": { + "detail": { + "latest-version": "Nejnovější v{{version}}", + "version": "v{{version}}" + }, + "installation": { + "title": "Instalace", + "install-using-yarn": "Instalace pomocí yarn", + "install-using-yarn-command": "yarn add {{packageName}}", + "install-using-npm": "Instalace pomocí npm", + "install-using-npm-command": "npm install {{packageName}}", + "install-using-pnpm": "Instalace pomocí pnpm", + "install-using-pnpm-command": "pnpm install {{packageName}}" + }, + "repository": { + "title": "Repozitář" + }, + "author": { + "title": "Autor" + }, + "distribution": { + "title": "Nejnovější distribuce", + "license": "Licence", + "size": "Velikost", + "file-count": "počet souborů" + }, + "maintainers": { + "title": "Správci" + }, + "contributors": { + "title": "Přispěvatelé" + }, + "engines": { + "npm-version": "NPM verze", + "node-js": "NODE JS" + } + }, + "footer": { + "powered-by": "Pohání", + "made-with-love-on": "Tvořeno s <0>♥ na" + }, + "button": { + "close": "Zavřít", + "cancel": "Zrušit", + "login": "Přihlásit se", + "logout": "Odhlásit se", + "go-to-the-home-page": "Přejít na domovskou stránku", + "learn-more": "Více informací", + "fund-this-package": "<0>Sponzorovat tento balíček" + }, + "error": { + "unspecific": "Něco se pokazilo.", + "404": { + "page-not-found": "404 - Stránka nebyla nalezena", + "sorry-we-could-not-find-it": "Omlouváme se, ale nepodařilo se nám to najít..." + }, + "app-context-not-correct-used": "Kontext aplikace nebyl použit správným způsobem", + "theme-context-not-correct-used": "Kontext šablony nebyl použit správným způsobem", + "package-meta-is-required-at-detail-context": "packageMeta je vyžadováno v DetailContext" + }, + "lng": { + "english": "Angličtina", + "czech": "Čeština", + "japanese": "Japonština", + "portuguese": "Portugalština", + "spanish": "Španělština", + "german": "Němčina", + "chinese": "Čínština", + "chineseTraditional": "Čínština (tradiční)", + "french": "Francouzština", + "ukraine": "Ukrajinština", + "khmer": "Khmerština" + } +} diff --git a/i18n/translations/de-DE.json b/i18n/translations/de-DE.json index ef288b8f8..5fad97a70 100644 --- a/i18n/translations/de-DE.json +++ b/i18n/translations/de-DE.json @@ -141,6 +141,7 @@ }, "lng": { "english": "Englisch", + "czech": "Tschechisch", "japanese": "Japanisch", "portuguese": "Portugiesisch", "spanish": "Spanisch", diff --git a/i18n/translations/en-US.json b/i18n/translations/en-US.json index 0b560e3c3..38770cb78 100644 --- a/i18n/translations/en-US.json +++ b/i18n/translations/en-US.json @@ -141,6 +141,7 @@ }, "lng": { "english": "English", + "czech": "Czech", "japanese": "Japanese", "portuguese": "Portuguese", "spanish": "Spanish", diff --git a/i18n/translations/es-ES.json b/i18n/translations/es-ES.json index e027d0caf..c56d1c09a 100644 --- a/i18n/translations/es-ES.json +++ b/i18n/translations/es-ES.json @@ -141,6 +141,7 @@ }, "lng": { "english": "Inglés", + "czech": "Checo", "japanese": "Japonés", "portuguese": "Portugués", "spanish": "Español", diff --git a/i18n/translations/fr-FR.json b/i18n/translations/fr-FR.json index 6ed4bc920..7a19a40fe 100644 --- a/i18n/translations/fr-FR.json +++ b/i18n/translations/fr-FR.json @@ -141,6 +141,7 @@ }, "lng": { "english": "Anglais", + "czech": "Tchèque", "japanese": "Japonais", "portuguese": "Portugais", "spanish": "Espagnol", diff --git a/i18n/translations/ja-JP.json b/i18n/translations/ja-JP.json index 5053b48c4..d1a4fa382 100644 --- a/i18n/translations/ja-JP.json +++ b/i18n/translations/ja-JP.json @@ -141,6 +141,7 @@ }, "lng": { "english": "英語", + "czech": "チェコ人", "japanese": "日本語", "portuguese": "ポルトガル語", "spanish": "スペイン語", diff --git a/i18n/translations/km-KH.json b/i18n/translations/km-KH.json index 129ad410e..9ac9b0434 100644 --- a/i18n/translations/km-KH.json +++ b/i18n/translations/km-KH.json @@ -141,6 +141,7 @@ }, "lng": { "english": "អង់គ្លេស", + "czech": "ឆែក", "japanese": "ជប៉ុន", "portuguese": "ព័រទុយហ្កាល់", "spanish": "អេស្ប៉ាញ", diff --git a/i18n/translations/pt-BR.json b/i18n/translations/pt-BR.json index 3f506e358..1319a70e9 100644 --- a/i18n/translations/pt-BR.json +++ b/i18n/translations/pt-BR.json @@ -141,6 +141,7 @@ }, "lng": { "english": "Inglês", + "czech": "Tcheco", "japanese": "Japonês", "portuguese": "Português", "spanish": "Espanhol", diff --git a/i18n/translations/uk-UA.json b/i18n/translations/uk-UA.json index 549e61753..4efa7dbe6 100644 --- a/i18n/translations/uk-UA.json +++ b/i18n/translations/uk-UA.json @@ -141,6 +141,7 @@ }, "lng": { "english": "Англійська", + "czech": "Чеська", "japanese": "Японська", "portuguese": "Португальська", "spanish": "Іспанська", diff --git a/i18n/translations/zh-CN.json b/i18n/translations/zh-CN.json index 1e0b8f169..a19d5e21e 100644 --- a/i18n/translations/zh-CN.json +++ b/i18n/translations/zh-CN.json @@ -141,6 +141,7 @@ }, "lng": { "english": "英语", + "czech": "捷克語", "japanese": "日语", "portuguese": "葡萄牙语", "spanish": "西班牙语", diff --git a/i18n/translations/zh-TW.json b/i18n/translations/zh-TW.json index f6f83740e..097f0a404 100644 --- a/i18n/translations/zh-TW.json +++ b/i18n/translations/zh-TW.json @@ -138,6 +138,7 @@ }, "lng": { "english": "英文", + "czech": "捷克文", "japanese": "日文", "portuguese": "葡萄牙文", "spanish": "西班牙文", diff --git a/package.json b/package.json index eeaf4999f..a74660f35 100644 --- a/package.json +++ b/package.json @@ -146,7 +146,7 @@ }, { "path": "./static/main.*.js", - "maxSize": "36 kB" + "maxSize": "37 kB" }, { "path": "./static/[0-9].*.{js,css}", diff --git a/src/components/Icon/Icon.tsx b/src/components/Icon/Icon.tsx index 6639f0fc5..99c0e25c8 100644 --- a/src/components/Icon/Icon.tsx +++ b/src/components/Icon/Icon.tsx @@ -5,6 +5,7 @@ import { Breakpoint } from '@material-ui/core/styles/createBreakpoints'; import { Svg, Img, ImgWrapper } from './styles'; import brazil from './img/brazil.svg'; import china from './img/china.svg'; +import czech from './img/czech.svg'; import india from './img/india.svg'; import germany from './img/germany.svg'; import nicaragua from './img/nicaragua.svg'; @@ -27,6 +28,7 @@ import version from './img/version.svg'; export interface IconsMap { brazil: string; + czech: string; spain: string; china: string; usa: string; @@ -52,6 +54,7 @@ export interface IconsMap { export const Icons: IconsMap = { brazil, + czech, spain, china, nicaragua, diff --git a/src/components/Icon/img/czech.svg b/src/components/Icon/img/czech.svg new file mode 100644 index 000000000..d2bcae34a --- /dev/null +++ b/src/components/Icon/img/czech.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/LanguageSwitch/LanguageSwitch.tsx b/src/components/LanguageSwitch/LanguageSwitch.tsx index eecc3030b..a2b3bd7f3 100644 --- a/src/components/LanguageSwitch/LanguageSwitch.tsx +++ b/src/components/LanguageSwitch/LanguageSwitch.tsx @@ -49,6 +49,10 @@ const lngDetails: Record