Skip to content

Add Polish desktop client translation - #6974

Open
Robert-codex wants to merge 1 commit into
netbirdio:mainfrom
Robert-codex:agent/add-polish-translation
Open

Add Polish desktop client translation#6974
Robert-codex wants to merge 1 commit into
netbirdio:mainfrom
Robert-codex:agent/add-polish-translation

Conversation

@Robert-codex

@Robert-codex Robert-codex commented Jul 30, 2026

Copy link
Copy Markdown

What changed

  • add a complete Polish (pl) locale for the desktop client and tray UI
  • register Polish in the shipped language index
  • translate all 447 current source messages while preserving placeholders, markup, brands, and key order

Why

Polish was not available in the desktop client's language picker despite the existing localization framework.

Terminology

  • peer: urządzenie
  • Exit Node: węzeł wyjściowy
  • resource: zasób
  • daemon: demon
  • management server: serwer zarządzający
  • handshake: uzgadnianie

The duration strings use abbreviations where necessary because the current one/other plural model cannot represent all Polish plural forms.

Validation

  • go test ./client/ui/i18n ./client/ui/preferences
  • structural comparison against the English bundle: 447/447 keys in identical order
  • verified placeholder, inline-tag, newline, leading-space, and trailing-ellipsis preservation
  • git diff --check

The translation has not yet been reviewed in the running desktop UI; this draft PR leaves room for native-language and visual review.

Summary by CodeRabbit

  • New Features
    • Added Polish language support throughout the application.
    • Added Polish translations for navigation, settings, onboarding, notifications, authentication, updates, and connection-related messages.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Adds Polish to the available language list and introduces a complete Polish translation bundle covering client UI, settings, onboarding, updates, runtime states, and authentication messages.

Changes

Polish localization

Layer / File(s) Summary
Locale registration and base strings
client/ui/i18n/locales/_index.json, client/ui/i18n/locales/pl/common.json
Registers Polish and translates tray, connectivity, notifications, common actions, navigation, and profile flows.
Settings and diagnostics translations
client/ui/i18n/locales/pl/common.json
Adds Polish text for settings, networking, security, SSH, advanced configuration, and troubleshooting diagnostics.
Lifecycle and runtime translations
client/ui/i18n/locales/pl/common.json
Adds Polish text for updates, onboarding, session renewal, peers, networks, exit nodes, daemon states, authentication errors, and SSH privilege hints.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • netbirdio/netbird#6790: Adds another registered language and a complete locale bundle using the same UI translation structure.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely captures the main change: adding a Polish translation for the desktop client.
Description check ✅ Passed The description covers what changed, why, terminology, and validation, but it omits the issue ticket, checklist, and docs sections from the template.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@Robert-codex
Robert-codex marked this pull request as ready for review July 30, 2026 10:02

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@client/ui/i18n/locales/pl/common.json`:
- Around line 80-82: Update the message value for the tray.menu.about
translation to a Polish label meaning “About,” such as “O NetBird” or
“Informacje,” rather than “Pomoc i wsparcie.”
- Around line 692-699: Update the Polish messages for
settings.ssh.localForward.help and settings.ssh.remoteForward.help to use the
grammatical “Zezwalaj ... na” construction, replacing the infinitive forms with
“na tunelowanie” and “na udostępnianie” while preserving the existing meaning.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: ad7d7779-4fa5-4640-97fb-76ffb11fa949

📥 Commits

Reviewing files that changed from the base of the PR and between 1bf54dd and 424ca7c.

📒 Files selected for processing (2)
  • client/ui/i18n/locales/_index.json
  • client/ui/i18n/locales/pl/common.json

Comment on lines +80 to +82
"tray.menu.about": {
"message": "Pomoc i wsparcie"
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Translate the About menu item as About.

tray.menu.about is currently “Pomoc i wsparcie” (“Help and support”), while documentation and troubleshooting already have separate entries. Use a label such as “O NetBird” or “Informacje”.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@client/ui/i18n/locales/pl/common.json` around lines 80 - 82, Update the
message value for the tray.menu.about translation to a Polish label meaning
“About,” such as “O NetBird” or “Informacje,” rather than “Pomoc i wsparcie.”

Comment on lines +692 to +699
"settings.ssh.localForward.help": {
"message": "Zezwalaj łączącym się urządzeniom tunelować swoje lokalne porty do usług dostępnych z tego hosta."
},
"settings.ssh.remoteForward.label": {
"message": "Zdalne przekierowanie portów"
},
"settings.ssh.remoteForward.help": {
"message": "Zezwalaj łączącym się urządzeniom udostępniać na tym hoście porty prowadzące do ich własnych maszyn."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Use the Polish zezwalać na construction.

Both SSH forwarding descriptions use Zezwalaj ... tunelować/udostępniać, which is grammatically incorrect. Change these to Zezwalaj ... na tunelowanie and ... na udostępnianie.

Proposed wording
-        "message": "Zezwalaj łączącym się urządzeniom tunelować swoje lokalne porty do usług dostępnych z tego hosta."
+        "message": "Zezwalaj łączącym się urządzeniom na tunelowanie swoich lokalnych portów do usług dostępnych z tego hosta."
-        "message": "Zezwalaj łączącym się urządzeniom udostępniać na tym hoście porty prowadzące do ich własnych maszyn."
+        "message": "Zezwalaj łączącym się urządzeniom na udostępnianie na tym hoście portów prowadzących do ich własnych maszyn."
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"settings.ssh.localForward.help": {
"message": "Zezwalaj łączącym się urządzeniom tunelować swoje lokalne porty do usług dostępnych z tego hosta."
},
"settings.ssh.remoteForward.label": {
"message": "Zdalne przekierowanie portów"
},
"settings.ssh.remoteForward.help": {
"message": "Zezwalaj łączącym się urządzeniom udostępniać na tym hoście porty prowadzące do ich własnych maszyn."
"settings.ssh.localForward.help": {
"message": "Zezwalaj łączącym się urządzeniom na tunelowanie swoich lokalnych portów do usług dostępnych z tego hosta."
},
"settings.ssh.remoteForward.label": {
"message": "Zdalne przekierowanie portów"
},
"settings.ssh.remoteForward.help": {
"message": "Zezwalaj łączącym się urządzeniom na udostępnianie na tym hoście portów prowadzących do ich własnych maszyn."
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@client/ui/i18n/locales/pl/common.json` around lines 692 - 699, Update the
Polish messages for settings.ssh.localForward.help and
settings.ssh.remoteForward.help to use the grammatical “Zezwalaj ... na”
construction, replacing the infinitive forms with “na tunelowanie” and “na
udostępnianie” while preserving the existing meaning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants