Skip to content

web: enable Bengali (bn-BD) locale - #24788

Merged
GirlBossRush merged 3 commits into
goauthentik:mainfrom
DrHaque:web/enable-bengali-bn-bd-locale
Oct 6, 2026
Merged

GirlBossRush merged 3 commits into
goauthentik:mainfrom
DrHaque:web/enable-bengali-bn-bd-locale

Conversation

@DrHaque

@DrHaque DrHaque commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Details

What does this PR change?

Adds bn-BD to the frontend's target locale list (web/lit-localize.json) and to the manual locale loader map (web/src/common/ui/locale/definitions.ts), and regenerates web/src/locale-codes.ts accordingly.

web/xliff/bn_BD.xlf is renamed to web/xliff/bn-BD.xlf to match the hyphenated locale code convention used by every other target locale (bg-BG, tr-TR, etc.) — this rename is a byte-identical copy, zero content/translation changes. It's required because lit-localize's build looks for the xliff source at xliffDir/{targetLocaleCode}.xlf; without a file at that exact path the build fails with a missing-source-file error. Translation content itself is left entirely alone — Transifex sync continues to own and update bn_BD/bn-BD translations as it already does.

Why is this change needed?

Bengali has active translators on Transifex (currently ~96% complete, ahead of several already-enabled locales like tr-TR at 48% or zh-Hant at 38%), but the locale was never added to the target locale list, so it's never compiled or exposed in the UI language selector. See #11550 for background on this gap between "translated on Transifex" and "available in the UI."

How was this tested?

  • pnpm --dir web run lint-check
  • pnpm --dir web run tsc
  • pnpm --dir web run prettier-check
  • pnpm --dir web run lit-analyse
  • NODE_ENV=production pnpm --dir web run build

All pass locally, mirroring the CI - Web workflow.

Linked issues

refs #11550


Checklist

  • The project has been linted, built, and tested (web-scoped: lint, tsc, prettier, lit-analyse, build)
  • The documentation has been updated and formatted (make docs) — not applicable, no docs changes needed

@DrHaque
DrHaque requested review from a team as code owners August 5, 2026 14:25
@netlify

netlify Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 4087dac
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a888b4abda4920008b46ae9
😎 Deploy Preview https://deploy-preview-24788--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 5, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit eaa384e
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a7347dfdb34bb0007798dad
😎 Deploy Preview https://deploy-preview-24788--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@DrHaque
DrHaque force-pushed the web/enable-bengali-bn-bd-locale branch from eaa384e to 2b65dfa Compare August 5, 2026 14:56
@DrHaque
DrHaque force-pushed the web/enable-bengali-bn-bd-locale branch from 2b65dfa to 4087dac Compare August 21, 2026 17:30
Adds bn-BD to the target locale list and its module loader entry so
the Transifex-translated Bengali strings compile and become
selectable in the UI language picker. Renames
web/xliff/bn_BD.xlf to bn-BD.xlf (content unchanged) to match the
project's hyphenated locale code convention used by every other
target locale.

Translation content itself is left untouched; Transifex sync will
continue to update it as usual.

Signed-off-by: Azharul Haque <[email protected]>
@GirlBossRush
GirlBossRush force-pushed the web/enable-bengali-bn-bd-locale branch from 4087dac to 2f6c844 Compare October 6, 2026 15:13
@GirlBossRush GirlBossRush added area:frontend Features or issues related to the browser, TypeScript, Node.js, etc i18n Internationalization and localization labels Oct 6, 2026
@GirlBossRush GirlBossRush self-assigned this Oct 6, 2026
@codecov

codecov Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.30%. Comparing base (d898315) to head (f243871).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24788      +/-   ##
==========================================
- Coverage   92.33%   92.30%   -0.04%     
==========================================
  Files        1175     1175              
  Lines       77788    77788              
  Branches     4129     4129              
==========================================
- Hits        71826    71802      -24     
- Misses       5896     5920      +24     
  Partials       66       66              
Flag Coverage Δ
conformance 32.92% <ø> (ø)
e2e 37.72% <ø> (+<0.01%) ⬆️
integration 29.67% <ø> (-0.04%) ⬇️
rust 46.45% <ø> (ø)
unit 93.75% <ø> (+<0.01%) ⬆️
unit-migrate 93.75% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@GirlBossRush
GirlBossRush merged commit 2aada01 into goauthentik:main Oct 6, 2026
138 of 140 checks passed
@asbjoern-navio asbjoern-navio mentioned this pull request Oct 8, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc i18n Internationalization and localization

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants