Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion i18n/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -16,6 +17,9 @@ const languages = {
'en-US': {
translation: translationEN,
},
'cs-CZ': {
translation: translationCS,
},
'pt-BR': {
translation: translationPT,
},
Expand Down Expand Up @@ -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,
Expand Down
155 changes: 155 additions & 0 deletions i18n/translations/cs-CZ.json
Original file line number Diff line number Diff line change
@@ -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>♥</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</0> 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"
}
}
1 change: 1 addition & 0 deletions i18n/translations/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
},
"lng": {
"english": "Englisch",
"czech": "Tschechisch",
"japanese": "Japanisch",
"portuguese": "Portugiesisch",
"spanish": "Spanisch",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
},
"lng": {
"english": "English",
"czech": "Czech",
"japanese": "Japanese",
"portuguese": "Portuguese",
"spanish": "Spanish",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/es-ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
},
"lng": {
"english": "Inglés",
"czech": "Checo",
"japanese": "Japonés",
"portuguese": "Portugués",
"spanish": "Español",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
},
"lng": {
"english": "Anglais",
"czech": "Tchèque",
"japanese": "Japonais",
"portuguese": "Portugais",
"spanish": "Espagnol",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
},
"lng": {
"english": "英語",
"czech": "チェコ人",
"japanese": "日本語",
"portuguese": "ポルトガル語",
"spanish": "スペイン語",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/km-KH.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
},
"lng": {
"english": "អង់គ្លេស",
"czech": "ឆែក",
"japanese": "ជប៉ុន",
"portuguese": "ព័រទុយហ្កាល់",
"spanish": "អេស្ប៉ាញ",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
},
"lng": {
"english": "Inglês",
"czech": "Tcheco",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<3

"japanese": "Japonês",
"portuguese": "Português",
"spanish": "Espanhol",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/uk-UA.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
},
"lng": {
"english": "Англійська",
"czech": "Чеська",
"japanese": "Японська",
"portuguese": "Португальська",
"spanish": "Іспанська",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@
},
"lng": {
"english": "英语",
"czech": "捷克語",
"japanese": "日语",
"portuguese": "葡萄牙语",
"spanish": "西班牙语",
Expand Down
1 change: 1 addition & 0 deletions i18n/translations/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
},
"lng": {
"english": "英文",
"czech": "捷克文",
"japanese": "日文",
"portuguese": "葡萄牙文",
"spanish": "西班牙文",
Expand Down
3 changes: 3 additions & 0 deletions src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -27,6 +28,7 @@ import version from './img/version.svg';

export interface IconsMap {
brazil: string;
czech: string;
spain: string;
china: string;
usa: string;
Expand All @@ -52,6 +54,7 @@ export interface IconsMap {

export const Icons: IconsMap = {
brazil,
czech,
spain,
china,
nicaragua,
Expand Down
1 change: 1 addition & 0 deletions src/components/Icon/img/czech.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/components/LanguageSwitch/LanguageSwitch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ const lngDetails: Record<Language, { translation: TFunctionKeys; icon: React.Com
translation: 'lng.english',
icon: 'usa',
},
'cs-CZ': {
translation: 'lng.czech',
icon: 'czech',
},
'zh-TW': {
translation: 'lng.chineseTraditional',
icon: 'taiwan',
Expand Down
6 changes: 6 additions & 0 deletions src/design-tokens/load-dayjs-locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ function loadDayJSLocale() {
dayjs.locale('zh-tw');
}
break;
case 'cs-cz':
{
require('dayjs/locale/cs');
dayjs.locale('cs');
}
break;
default:
{
require('dayjs/locale/en');
Expand Down