TutorialMarch 30, 20261 min read

Polish Translation for React DOCX Editor. Edytor DOCX po polsku

How to use the Polish (pl) locale in docx-js-editor. Localize the toolbar, comments, and track changes UI to Polish. Edytor dokumentow DOCX z polskim interfejsem.

0.x postThis post uses the 0.x package names and APIs. For the current release see the 2.x docs.

Live demo

Upload a .docx or edit the sample on this page. The UI is in Polish.

Setup

Import the Polish locale and pass it via the i18n prop:

import { DocxEditor } from "@eigenpal/docx-js-editor";
import pl from "@eigenpal/docx-js-editor/i18n/pl.json";
import "@eigenpal/docx-js-editor/styles.css";
 
function App() {
  return (
    <DocxEditor
      documentBuffer={buffer}
      i18n={pl}
      showToolbar
      showRuler
    />
  );
}

The locale import lets a bundler exclude other locale JSON files.

Translation reference

Toolbar / Pasek narzędzi

EnglishPolish
BoldPogrubienie
ItalicKursywa
UnderlinePodkreślenie
StrikethroughPrzekreślenie
UndoCofnij
RedoPonów
FontCzcionka
SizeRozmiar
Text ColorKolor tekstu
HighlightPodświetlenie
Align LeftWyrównaj do lewej
CenterWyśrodkuj
Align RightWyrównaj do prawej
JustifyWyjustuj
Bullet ListLista punktowana
Numbered ListLista numerowana
Insert TableWstaw tabelę
Insert ImageWstaw obraz
SaveZapisz

Comments / Komentarze

EnglishPolish
Add CommentDodaj komentarz
ReplyOdpowiedz
ResolveRozwiąż
DeleteUsuń

Track changes / Śledzenie zmian

EnglishPolish
AcceptZaakceptuj
RejectOdrzuć
Accept AllZaakceptuj wszystkie
Reject AllOdrzuć wszystkie

Modes / Tryby

EnglishPolish
EditingEdycja
SuggestingSugerowanie
ViewingPodgląd
Read OnlyTylko do odczytu

Contribute

The locale uses null for untranslated keys. The editor uses English for these keys. To improve the Polish translation or add a language, follow the internationalization contribution guide.

Next steps