Live demo
Upload a .docx or edit the sample below — 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
/>
);
}Tree-shaking ensures only the Polish JSON gets bundled.
Translation reference
Toolbar / Pasek narzędzi
| English | Polish |
|---|---|
| Bold | Pogrubienie |
| Italic | Kursywa |
| Underline | Podkreślenie |
| Strikethrough | Przekreślenie |
| Undo | Cofnij |
| Redo | Ponów |
| Font | Czcionka |
| Size | Rozmiar |
| Text Color | Kolor tekstu |
| Highlight | Podświetlenie |
| Align Left | Wyrównaj do lewej |
| Center | Wyśrodkuj |
| Align Right | Wyrównaj do prawej |
| Justify | Wyjustuj |
| Bullet List | Lista punktowana |
| Numbered List | Lista numerowana |
| Insert Table | Wstaw tabelę |
| Insert Image | Wstaw obraz |
| Save | Zapisz |
Comments / Komentarze
| English | Polish |
|---|---|
| Add Comment | Dodaj komentarz |
| Reply | Odpowiedz |
| Resolve | Rozwiąż |
| Delete | Usuń |
Track changes / Śledzenie zmian
| English | Polish |
|---|---|
| Accept | Zaakceptuj |
| Reject | Odrzuć |
| Accept All | Zaakceptuj wszystkie |
| Reject All | Odrzuć wszystkie |
Modes / Tryby
| English | Polish |
|---|---|
| Editing | Edycja |
| Suggesting | Sugerowanie |
| Viewing | Podgląd |
| Read Only | Tylko do odczytu |
Contribute
The locale uses null for untranslated keys — English is used as fallback. Community contributions are welcome. See the contribution guide to learn how to improve the Polish translation or add a new language.
Next steps
- Translations docs — full i18n reference and contribution guide
- German translation — German locale setup
- Track changes — tracked changes workflow
- Full docs — all props and configuration