From 78fc90426d58d6c36dcb8215e3181476d0702f50 Mon Sep 17 00:00:00 2001 From: Krzysztof Podurgiel Date: Wed, 20 Mar 2024 11:14:40 +0100 Subject: Add Polish UI translations (#1614) * adding Polish translation json * fixing a typo in the description in the i18n schema * changeset file * Add missing new line character Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com> * chore: use recommended changeset verb tense --------- Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>--- .changeset/cold-flowers-hunt.md | 5 +++++ packages/starlight/schemas/i18n.ts | 2 +- packages/starlight/translations/index.ts | 2 ++ packages/starlight/translations/pl.json | 30 ++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .changeset/cold-flowers-hunt.md create mode 100644 packages/starlight/translations/pl.json diff --git a/.changeset/cold-flowers-hunt.md b/.changeset/cold-flowers-hunt.md new file mode 100644 index 00000000..9685867b --- /dev/null +++ b/.changeset/cold-flowers-hunt.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': patch +--- + +Adds Polish UI translations diff --git a/packages/starlight/schemas/i18n.ts b/packages/starlight/schemas/i18n.ts index b847b08b..227ce446 100644 --- a/packages/starlight/schemas/i18n.ts +++ b/packages/starlight/schemas/i18n.ts @@ -78,7 +78,7 @@ function starlightI18nSchema() { 'menuButton.accessibleLabel': z .string() - .describe('Accessible label for he mobile menu button.'), + .describe('Accessible label for the mobile menu button.'), 'sidebarNav.accessibleLabel': z .string() diff --git a/packages/starlight/translations/index.ts b/packages/starlight/translations/index.ts index abe740da..d8d83111 100644 --- a/packages/starlight/translations/index.ts +++ b/packages/starlight/translations/index.ts @@ -25,6 +25,7 @@ import vi from './vi.json'; import uk from './uk.json'; import hi from './hi.json'; import zhTW from './zh-TW.json'; +import pl from './pl.json'; const { parse } = builtinI18nSchema(); @@ -56,5 +57,6 @@ export default Object.fromEntries( uk, hi, 'zh-TW': zhTW, + pl, }).map(([key, dict]) => [key, parse(dict)]) ); diff --git a/packages/starlight/translations/pl.json b/packages/starlight/translations/pl.json new file mode 100644 index 00000000..aa446c4a --- /dev/null +++ b/packages/starlight/translations/pl.json @@ -0,0 +1,30 @@ +{ + "skipLink.label": "Przejdź do głównej zawartości", + "search.label": "Szukaj", + "search.shortcutLabel": "(Naciśnij /, aby wyszukać)", + "search.cancelLabel": "Anuluj", + "search.devWarning": "Wyszukiwanie jest dostępne tylko w buildach produkcyjnych. \nSpróbuj zbudować i uruchomić aplikację, aby przetestować lokalnie.", + "themeSelect.accessibleLabel": "Wybierz motyw", + "themeSelect.dark": "Ciemny", + "themeSelect.light": "Jasny", + "themeSelect.auto": "Auto", + "languageSelect.accessibleLabel": "Wybierz język", + "menuButton.accessibleLabel": "Menu", + "sidebarNav.accessibleLabel": "Główne", + "tableOfContents.onThisPage": "Na tej stronie", + "tableOfContents.overview": "Przegląd", + "i18n.untranslatedContent": "Ta treść nie jest jeszcze dostępna w Twoim języku.", + "page.editLink": "Edytuj stronę", + "page.lastUpdated": "Ostatnia aktualizacja:", + "page.previousLink": "Poprzednia strona", + "page.nextLink": "Następna strona", + "404.text": "Nie znaleziono. Sprawdź URL lub użyj wyszukiwarki.", + "aside.note": "Notatka", + "aside.tip": "Wskazówka", + "aside.caution": "Uwaga", + "aside.danger": "Ważne", + "fileTree.directory": "Folder", + "expressiveCode.copyButtonCopied": "Skopiowane!", + "expressiveCode.copyButtonTooltip": "Skopiuj do schowka", + "expressiveCode.terminalWindowFallbackTitle": "Okno terminala" +} -- cgit