diff options
author | Krzysztof Podurgiel | 2024-03-20 11:14:40 +0100 |
---|---|---|
committer | GitHub | 2024-03-20 11:14:40 +0100 |
commit | 78fc90426d58d6c36dcb8215e3181476d0702f50 (patch) | |
tree | 6afde87cf65a0e0f014dbc04e761f1e4d8db9ed1 | |
parent | 0d3abad33f056357fe3099e16a4dd3cd90b91455 (diff) | |
download | IT.starlight-78fc90426d58d6c36dcb8215e3181476d0702f50.tar.gz IT.starlight-78fc90426d58d6c36dcb8215e3181476d0702f50.tar.bz2 IT.starlight-78fc90426d58d6c36dcb8215e3181476d0702f50.zip |
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>
-rw-r--r-- | .changeset/cold-flowers-hunt.md | 5 | ||||
-rw-r--r-- | packages/starlight/schemas/i18n.ts | 2 | ||||
-rw-r--r-- | packages/starlight/translations/index.ts | 2 | ||||
-rw-r--r-- | packages/starlight/translations/pl.json | 30 |
4 files changed, 38 insertions, 1 deletions
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" +} |