diff --git a/guides/translation.md b/guides/translation.md index 78e2bccde..f6b6ca664 100644 --- a/guides/translation.md +++ b/guides/translation.md @@ -20,7 +20,7 @@ Want to add a new language to our translations? Create a new branch on Github. -In the `packages/tldraw/src/translations` folder, duplicate the `en.json` file. +In the `packages/tldraw/src/translations` folder, duplicate the `main.json` file. Rename the new file to the [language code](https://gist.github.com/wpsmith/7604842) for that language. For example, if you were making an Esperanto translation, name the new file `eo.json`. diff --git a/packages/tldraw/src/translations/pl.json b/packages/tldraw/src/translations/pl.json new file mode 100644 index 000000000..d0c1bfcd6 --- /dev/null +++ b/packages/tldraw/src/translations/pl.json @@ -0,0 +1,90 @@ +{ + "style.menu.color": "Kolor", + "style.menu.fill": "Wypełnienie", + "style.menu.dash": "Linia", + "style.menu.size": "Rozmiar", + "style.menu.keep.open": "Zachowaj otwarte", + "style.menu.font": "Czcionka", + "style.menu.align": "Wyrównanie", + "styles": "Style", + "zoom.in": "Przybliż", + "zoom.out": "Oddal", + "to": "do", + "to.selection": "Do zaznaczenia", + "to.fit": "Do wypełnienia", + "menu.file": "Plik", + "menu.edit": "Edycja", + "menu.view": "Widok", + "menu.preferences": "Preferencje", + "menu.sign.in": "Zaloguj", + "menu.sign.out": "Wyloguj", + "sponsored": "Sponsorzy", + "become.a.sponsor": "Zostań sponsorem", + "zoom.to.selection": "Przybliż do zaznaczenia", + "zoom.to.fit": "Wypełnij ekran", + "zoom.to": "Przybliż do", + "preferences.dark.mode": "Tryb ciemny", + "preferences.focus.mode": "Tryb skupienia", + "preferences.debug.mode": "Tryb debugowania", + "preferences.show.grid": "Pokaż siatkę", + "preferences.use.cad.selection": "Użyj zaznaczania CAD", + "preferences.keep.stylemenu.open": "Zachowaj menu styli otwarte", + "preferences.always.show.snaps": "Przyciągaj obiekty", + "preferences.rotate.handles": "Uchwyty obrotu", + "preferences.binding.handles": "Uchwyty powiązania", + "preferences.clone.handles": "Uchwyty klonujące", + "undo": "Cofnij", + "redo": "Powtórz", + "cut": "Wytnij", + "copy": "Kopiuj", + "paste": "Wklej", + "copy.as": "Kopiuj jako", + "export.as": "Eksportuj jako", + "select.all": "Zaznacz wszystko", + "select.none": "Odznacz wszystko", + "delete": "Usuń", + "new.project": "Nowy projekt", + "open": "Otwórz", + "save": "Zapisz", + "save.as": "Zapisz jako", + "upload.media": "Załaduj multimedia", + "create.page": "Utwórz stronę", + "new.page": "Nowa strona", + "page.name": "Nazwa strony", + "duplicate": "Powiel", + "cancel": "Anuluj", + "copy.invite.link": "Kopiuj link zaproszenia", + "create.multiplayer.project": "Stwórz projekt wieloosobowy", + "copy.multiplayer.project": "Kopiuj do projektu wieloosobowego", + "select": "Zaznacz", + "eraser": "Gumka", + "draw": "Rysuj", + "arrow": "Strzałka", + "text": "Tekst", + "sticky": "Naklejka", + "Rectangle": "Prostokąt", + "Ellipse": "Elipsa", + "Triangle": "Trójkąt", + "Line": "Linia", + "rotate": "Obróć", + "lock.aspect.ratio": "Zablokuj proporcje", + "unlock.aspect.ratio": "Odblokuj proporcje", + "group": "Grupuj", + "ungroup": "Rozgrupuj", + "move.to.back": "Przenieś na tył", + "move.backward": "Przesuń do tyłu", + "move.forward": "Przesuń do przodu", + "move.to.front": "Przenieś na przód", + "reset.angle": "Resetuj kąt", + "lock": "Zablokuj", + "unlock": "Odblokuj", + "move.to.page": "Przenieś na stronę", + "flip.horizontal": "Odwróć w poziomie", + "flip.vertical": "Odwróć w pionie", + "move": "Przenieś", + "to.front": "Na wierzch", + "forward": "Do przodu", + "backward": "Do tyłu", + "back": "Na spód", + "language": "Język" +} diff --git a/packages/tldraw/src/translations/translations.ts b/packages/tldraw/src/translations/translations.ts index 7202f111e..f777d38ae 100644 --- a/packages/tldraw/src/translations/translations.ts +++ b/packages/tldraw/src/translations/translations.ts @@ -8,6 +8,7 @@ import no from './no.json' import zh_cn from './zh-cn.json' import tr from './tr.json' import es from './es.json' +import pl from './pl.json' // The default language (english) must have a value for every message. // Other languages may have missing messages. If the application finds @@ -23,6 +24,7 @@ export const TRANSLATIONS: TDTranslations = [ { code: 'ja', label: '日本語', messages: ja }, { code: 'ko-kr', label: '한국어', messages: ko_kr }, { code: 'no', label: 'Norwegian', messages: no }, + { code: 'pl', label: 'Polski', messages: pl }, { code: 'tr', label: 'Türkçe', messages: tr }, { code: 'zh-cn', label: 'Chinese - Simplified', messages: zh_cn }, ]