From 48a7e8fdb7894cbb57fe09aca822471c532c1b36 Mon Sep 17 00:00:00 2001 From: Maciej Olszewski <41488459+macolszewski@users.noreply.github.com> Date: Wed, 2 Dec 2026 14:48:56 +0100 Subject: [PATCH] Add Polish language support (#2389) --- CHANGELOG.md | 1 + i18next.config.ts | 2 +- src/i18n.ts | 1 + src/locales/README.md | 1 + src/locales/pl/translation.json | 216 ++++++++++++++++++++++++++++++++ 5 files changed, 220 insertions(+), 1 deletion(-) create mode 100644 src/locales/pl/translation.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 59fb8b85..66a80171 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## main ### ✨ Features and improvements +- Add Polish to the language selector - Preview sprites in all sprite-backed dropdowns, including icon-image and pattern properties, with searchable names and keyboard selection - Replace Cypress with Playwright for end-to-end tests and Vitest browser mode (Playwright provider) for component tests; drop the `@shellygo/cypress-test-utils` helper in favour of a `MaputnikDriver` page object - Upgrade to MapLibre GL JS 6 and Vite 8, and update the remaining dependencies diff --git a/i18next.config.ts b/i18next.config.ts index 5c98c307..a0f70447 100644 --- a/i18next.config.ts +++ b/i18next.config.ts @@ -1,7 +1,7 @@ import { defineConfig } from "i18next-cli"; export default defineConfig({ - locales: ["az", "de", "fr", "he", "it", "ja", "ko", "tr", "zh"], + locales: ["az", "de", "fr", "he", "it", "ja", "ko", "pl", "tr", "zh"], extract: { input: ["src/**/*.{js,jsx,ts,tsx}"], output: "src/locales/{{language}}/{{namespace}}.json", diff --git a/src/i18n.ts b/src/i18n.ts index 3997763b..8e667ddf 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -12,6 +12,7 @@ export const supportedLanguages = { "it": "Italiano", "ja": "日本語", "ko": "한국어", + "pl": "Polski", "tr": "Türkçe", "zh": "简体中文" } as const; diff --git a/src/locales/README.md b/src/locales/README.md index 2a4d1a0b..217b27ab 100644 --- a/src/locales/README.md +++ b/src/locales/README.md @@ -54,6 +54,7 @@ The following users can help you with the relevant languages: | it | Italian | [@napo](https://github.com/napo) | | ja | Japanese | [@keichan34](https://github.com/keichan34) | | ko | Korean | [@jinifor](https://github.com/jinifor) | +| pl | Polish | [@macolszewski](https://github.com/macolszewski) | | zh | Simplified Chinese | [@jieme](https://github.com/jieme) | | tr | Turkish | [@mcihad](https://github.com/mcihad) | diff --git a/src/locales/pl/translation.json b/src/locales/pl/translation.json new file mode 100644 index 00000000..b8b50516 --- /dev/null +++ b/src/locales/pl/translation.json @@ -0,0 +1,216 @@ +{ + "<0>Open in OSM. Opens the current view on openstreetmap.org": "<0>Otwórz w OSM, aby zobaczyć ten fragment mapy na openstreetmap.org.", + "Achromatopsia filter": "Symulacja achromatopsji", + "Active Sources": "Aktywne źródła", + "Add a new source to your style. You can only choose the source type and id at creation time!": "Dodaj nowe źródło do stylu. Typ i identyfikator źródła możesz wybrać tylko przy jego tworzeniu.", + "Add filter": "Dodaj filtr", + "Add Layer": "Dodaj warstwę", + "Add New Source": "Dodaj nowe źródło", + "Add one of the publicly available sources to your style.": "Dodaj do stylu jedno z publicznie dostępnych źródeł.", + "Add Source": "Dodaj źródło", + "Add stop": "Dodaj próg", + "Add value": "Dodaj wartość", + "Add Variable": "Dodaj zmienną", + "any filter matches": "co najmniej jeden warunek jest spełniony", + "API key for Stadia Maps.": "Klucz API usługi Stadia Maps.", + "Atmosphere blend": "Intensywność efektu atmosfery", + "Base": "Podstawa", + "Bearing": "Azymut", + "Cancel": "Anuluj", + "Center": "Środek mapy", + "Center altitude": "Wysokość środka mapy", + "Choose Public Source": "Wybierz publiczne źródło", + "Choose the default Maputnik renderer for this style.": "Wybierz domyślny silnik renderujący dla tego stylu w Maputniku.", + "Click to close the editor": "Kliknij, aby zamknąć edytor", + "Close": "Zamknij", + "Close modal": "Zamknij okno", + "Close popup": "Zamknij okno podręczne", + "Cluster": "Grupuj punkty", + "Code Editor": "Edytor kodu", + "Collapse": "Zwiń", + "Color accessibility": "Symulacja zaburzeń widzenia barw", + "Comment...": "Komentarz…", + "Comments": "Komentarze", + "Comments for the current layer. This is non-standard and not in the spec.": "Komentarze do tej warstwy. Specyfikacja stylu nie przewiduje takiego pola.", + "Convert property into a elevation function": "Uzależnij wartość właściwości od wysokości", + "Convert property into a zoom function": "Uzależnij wartość właściwości od powiększenia", + "Convert property to data function": "Uzależnij wartość właściwości od danych", + "Convert to expression": "Przekształć w wyrażenie", + "Coord bottom left": "Współrzędne lewego dolnego rogu", + "Coord bottom right": "Współrzędne prawego dolnego rogu", + "Coord top left": "Współrzędne lewego górnego rogu", + "Coord top right": "Współrzędne prawego górnego rogu", + "CORS policy won't allow fetching resources served over http from https, use a <1>https:// domain": "Zasady CORS blokują pobieranie zasobów HTTP ze strony otwartej przez HTTPS. Użyj adresu zaczynającego się od <1>https://.", + "Create HTML": "Utwórz plik HTML", + "Data Sources": "Źródła danych", + "Data Sources modal": "Okno źródeł danych", + "Data value": "Wartość atrybutu", + "Debug": "Diagnostyka", + "Debug modal": "Okno diagnostyki", + "Decrease the pitch by 10 degrees.": "Zmniejsz nachylenie o 10°.", + "Decrease the rotation by 15 degrees.": "Zmniejsz kąt obrotu o 15°.", + "Decrease the zoom level by 1.": "Zmniejsz powiększenie o jeden poziom.", + "Decrease the zoom level by 2.": "Zmniejsz powiększenie o dwa poziomy.", + "Default": "Wartość domyślna", + "Delete": "Usuń", + "Delete expression": "Usuń wyrażenie", + "Delete filter block": "Usuń blok filtra", + "Deuteranopia filter": "Symulacja deuteranopii", + "Drag and drop a style JSON file here or click to browse": "Upuść tutaj plik JSON ze stylem lub kliknij, aby wybrać plik", + "Drag to resize the layer list": "Przeciągnij, aby zmienić wysokość listy warstw", + "Drag to resize the sidebar": "Przeciągnij, aby zmienić szerokość panelu bocznego", + "Duplicate": "Duplikuj", + "Encoding": "Kodowanie", + "Enter URL...": "Wpisz adres URL…", + "every filter matches": "wszystkie warunki są spełnione", + "Expand": "Rozwiń", + "Export modal": "Okno eksportu", + "Filter": "Filtr", + "Focus map": "Przejdź do mapy", + "Fog color": "Kolor mgły", + "Fog ground blend": "Przejście między mgłą a podłożem", + "Font faces": "Kroje pisma", + "Function": "Funkcja", + "Gallery Styles": "Galeria stylów", + "General layout properties": "Ogólne właściwości układu", + "GeoJSON": "GeoJSON", + "GeoJSON (JSON)": "GeoJSON (JSON)", + "GeoJSON (URL)": "GeoJSON (URL)", + "GeoJSON URL": "Adres URL danych GeoJSON", + "Global State": "Stan globalny", + "Global State Variables": "Zmienne stanu globalnego", + "Glyphs URL": "Adres URL glifów", + "Help": "Pomoc", + "Hide": "Ukryj", + "Horizon color": "Kolor horyzontu", + "Horizon fog blend": "Przejście między horyzontem a mgłą", + "Icon layout properties": "Właściwości układu ikon", + "Icon paint properties": "Właściwości wyglądu ikon", + "If the Map is in focused you can use the following shortcuts": "Gdy mapa jest aktywna, możesz używać poniższych skrótów.", + "Image": "Obraz", + "Image URL": "Adres URL obrazu", + "Increase the pitch by 10 degrees.": "Zwiększ nachylenie o 10°.", + "Increase the rotation by 15 degrees.": "Zwiększ kąt obrotu o 15°.", + "Increase the zoom level by 1.": "Zwiększ powiększenie o jeden poziom.", + "Increase the zoom level by 2.": "Zwiększ powiększenie o dwa poziomy.", + "Input a data property to base styles off of.": "Wpisz nazwę atrybutu, od którego ma zależeć wygląd obiektów.", + "Input value": "Wartość wejściowa", + "Inspect": "Inspekcja", + "JSON Editor": "Edytor JSON", + "Key": "Klucz", + "Layer": "Warstwa", + "Layer editor": "Edytor warstwy", + "Layer ID already exists": "Warstwa o tym identyfikatorze już istnieje", + "Layers": "Warstwy", + "Layers list": "Lista warstw", + "Layout properties": "Właściwości układu", + "Learn More": "Dowiedz się więcej", + "Light anchor": "Układ odniesienia światła", + "Light color": "Kolor światła", + "Light intensity": "Natężenie światła", + "Light position": "Położenie źródła światła", + "Links": "Odnośniki", + "Load from a URL. Note that the URL must have <1>CORS enabled.": "Wczytaj styl z adresu URL. Serwer musi <1>zezwalać na dostęp przez CORS.", + "Load from URL": "Wczytaj z adresu URL", + "Loading": "Wczytywanie", + "Loading style": "Wczytywanie stylu", + "LocationIQ Access Token": "Token dostępu do LocationIQ", + "Map": "Mapa", + "Map view": "Widok mapy", + "MapTiler Access Token": "Token dostępu do MapTiler", + "Maputnik on GitHub": "Maputnik na GitHubie", + "Max Zoom": "Maksymalne powiększenie", + "Min Zoom": "Minimalne powiększenie", + "Move layer down": "Przesuń warstwę w dół", + "Move layer up": "Przesuń warstwę w górę", + "Must provide protocol: <1>http:// or <3>https://": "Adres musi zaczynać się od <1>http:// lub <3>https://", + "Must provide protocol: <1>https://": "Adres musi zaczynać się od <1>https://", + "Name": "Nazwa", + "Nested filters are not supported.": "Edytor nie obsługuje zagnieżdżonych filtrów.", + "no filter matches": "żaden warunek nie jest spełniony", + "No global state variables defined. Add variables to create reusable values in your style.": "Brak zmiennych stanu globalnego. Dodaj zmienne, aby używać tych samych wartości w różnych miejscach stylu.", + "Open": "Otwórz", + "Open a local JSON style from your computer.": "Otwórz plik JSON ze stylem zapisany na komputerze.", + "Open local Style": "Otwórz styl z pliku", + "Open modal": "Okno otwierania stylu", + "Open one of the publicly available styles to start from.": "Wybierz jeden z publicznie dostępnych stylów jako podstawę własnego stylu.", + "Open Style": "Otwórz styl", + "OpenLayers (experimental)": "OpenLayers (eksperymentalny)", + "Options": "Opcje", + "Output value": "Wartość wyjściowa", + "Owner": "Właściciel", + "Owner ID of the style. Used by Mapbox or future style APIs.": "Identyfikator właściciela stylu używany przez Mapbox. W przyszłości mogą z niego korzystać również inne interfejsy API stylów.", + "Paint properties": "Właściwości wyglądu", + "Pan down by 100 pixels.": "Przesuń widok w dół o 100 pikseli.", + "Pan left by 100 pixels.": "Przesuń widok w lewo o 100 pikseli.", + "Pan right by 100 pixels.": "Przesuń widok w prawo o 100 pikseli.", + "Pan up by 100 pixels.": "Przesuń widok w górę o 100 pikseli.", + "Pitch": "Nachylenie", + "PMTiles URL": "Adres URL archiwum PMTiles", + "Press <1>ESC to lose focus of any active elements, then press one of:": "Naciśnij <1>Esc, aby opuścić aktywny element, a następnie użyj jednego z poniższych skrótów.", + "Projection": "Odwzorowanie kartograficzne", + "Protanopia filter": "Symulacja protanopii", + "Public access token for LocationIQ services.": "Publiczny token dostępu do usług LocationIQ.", + "Public access token for MapTiler Cloud.": "Publiczny token dostępu do MapTiler Cloud.", + "Public access token for Thunderforest services.": "Publiczny token dostępu do usług Thunderforest.", + "Raster (Tile URLs)": "Źródło rastrowe (adresy URL kafli)", + "Raster (TileJSON URL)": "Źródło rastrowe (adres URL TileJSON)", + "Raster DEM (TileJSON URL)": "Rastrowy model wysokościowy (adres URL TileJSON)", + "Raster DEM (XYZ URLs)": "Rastrowy model wysokościowy (adresy URL kafli XYZ)", + "Remove '{{sourceId}}' source": "Usuń źródło „{{sourceId}}”", + "Remove array item": "Usuń element tablicy", + "Remove variable": "Usuń zmienną", + "Remove zoom level from stop": "Usuń próg", + "Revert from expression": "Cofnij konwersję na wyrażenie", + "Roll": "Przechylenie", + "Save": "Zapisz", + "Save as": "Zapisz jako", + "Save Style": "Zapisz styl", + "Save the JSON style to your computer.": "Zapisz styl na komputerze jako plik JSON.", + "Scheme Type": "Schemat numeracji kafli", + "Search": "Szukaj", + "Select a type of data scale (default is 'categorical').": "Wybierz typ skali danych (domyślnie „categorical”).", + "Shortcuts": "Skróty klawiaturowe", + "Shortcuts menu": "Lista skrótów klawiaturowych", + "Show": "Pokaż", + "Sky color": "Kolor nieba", + "Sky horizon blend": "Przejście między niebem a horyzontem", + "Source": "Źródło", + "Source ID": "Identyfikator źródła", + "Source Layer": "Warstwa źródłowa", + "Source Type": "Typ źródła", + "Sources": "Źródła", + "Sprite URL": "Adres URL zestawu ikon", + "Stadia Maps API Key": "Klucz API Stadia Maps", + "Stops": "Progi", + "Style Renderer": "Silnik renderujący", + "Style Settings": "Ustawienia stylu", + "Style Settings modal": "Okno ustawień stylu", + "Style URL": "Adres URL stylu", + "Switch to filter editor.": "Przejdź do edytora filtrów.", + "switch to layer": "przejdź do warstwy", + "Terrain exaggeration": "Skala pionowa terenu", + "Terrain source": "Źródło danych wysokościowych", + "Text layout properties": "Właściwości układu tekstu", + "Text paint properties": "Właściwości wyglądu tekstu", + "Thunderforest Access Token": "Token dostępu do Thunderforest", + "Tile Size": "Rozmiar kafla", + "Tile URL": "Adres URL kafla", + "TileJSON URL": "Adres URL TileJSON", + "Toggle inspect": "Przełącz tryb inspekcji", + "Transition delay": "Opóźnienie przejścia", + "Transition duration": "Czas trwania przejścia", + "Tritanopia filter": "Symulacja tritanopii", + "Type": "Typ", + "Unique ID that identifies the source and is used in the layer to reference the source.": "Unikatowy identyfikator używany w warstwach do wskazania źródła danych.", + "Upgrade to expression": "Przekształć filtr w wyrażenie", + "Value": "Wartość", + "Vector (PMTiles)": "Źródło wektorowe (PMTiles)", + "Vector (Tile URLs)": "Źródło wektorowe (adresy URL kafli)", + "Vector (TileJSON URL)": "Źródło wektorowe (adres URL TileJSON)", + "Video": "Wideo", + "Video URL": "Adres URL wideo", + "View": "Widok", + "You've entered an old style filter.": "Ten filtr korzysta ze starszej składni.", + "Zoom": "Poziom powiększenia" +}