Skip to content

Add Kurdish (Sorani) locale (ckb) - #3873

Merged
wojtekn merged 1 commit into
trunkfrom
add-kurdish-sorani-locale
Jun 18, 2026
Merged

Add Kurdish (Sorani) locale (ckb)#3873
wojtekn merged 1 commit into
trunkfrom
add-kurdish-sorani-locale

Conversation

@wojtekn

@wojtekn wojtekn commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Related issues

How AI was used in this PR

Claude Code wired the new translation file into the locale registry, identified all the places a locale needs to be registered (translation dictionary, supported-locale type, display-name map), and updated the localization docs to match the actual workflow. All changes were reviewed manually.

Proposed Changes

Adds Kurdish (Sorani) as a selectable language in Studio. Users who read Kurdish (Sorani) can now pick it from the language selector in Preferences and have the UI render in their language (falling back to English for any untranslated strings, as with every other locale).

Also corrects the localization docs: the "Supported Languages" section previously described a stale language count and an inaccurate step (editing the derived supportedLocales array). It now lists the real steps for adding a locale and explains that the GlotPress export is driven purely by the presence of studio-<locale>.jed.json files — there is no separate allowlist.

Note: Kurdish (Sorani) is a right-to-left language. Studio already supports RTL locales (Arabic, Hebrew), so no new RTL plumbing was needed.

Testing Instructions

  1. npm start
  2. Open Settings → Preferences and open the language selector.
  3. Confirm کوردیی ناوەندی appears in the list and can be selected.
  4. Confirm the app renders without console errors after switching, in both light and dark color schemes.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
Register the Kurdish (Sorani) translation so it can be selected in the UI,
and document the actual steps for adding a locale and how GlotPress
import/export discovers languages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@wojtekn
wojtekn requested a review from a team June 17, 2026 14:07

@sejas sejas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works as expected. Thanks! I was able to use WordPress Studio in Central Kurdish (Sorani) RTL language.
Including the .jed.json should be enough to keep updating translations automatically by Buildkite CI fetch_glotpress_translations 👍 .

Image
@wpmobilebot

Copy link
Copy Markdown
Collaborator

📊 Performance Test Results

Comparing e596355 vs trunk

app-size

Metric trunk e596355 Diff Change
App Size (Mac) 2355.89 MB 2357.40 MB +1.52 MB 🔴 0.1%

site-editor

Metric trunk e596355 Diff Change
load 1736 ms 1814 ms +78 ms 🔴 4.5%

site-startup

Metric trunk e596355 Diff Change
siteCreation 8033 ms 8502 ms +469 ms 🔴 5.8%
siteStartup 3916 ms 3870 ms 46 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@katinthehatsite katinthehatsite 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.

The changes look good and work as expected 👍

@wojtekn
wojtekn merged commit dc04159 into trunk Jun 18, 2026
12 of 13 checks passed
@wojtekn
wojtekn deleted the add-kurdish-sorani-locale branch June 18, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants