# Custom sidebar section translations break after changing the site's default locale

**URL:** https://meta.discourse.org/t/custom-sidebar-section-translations-break-after-changing-the-sites-default-locale/408327
**Category:** Bug
**Tags:** sidebar, localization, fixed
**Created:** [23 juli 2026 om 05:30 UTC](https://meta.discourse.org/t/custom-sidebar-section-translations-break-after-changing-the-sites-default-locale/408327 "2026-07-23T05:30:33Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [23 juli 2026 om 05:30 UTC](https://meta.discourse.org/t/custom-sidebar-section-translations-break-after-changing-the-sites-default-locale/408327/1 "2026-07-23T05:30:33Z")

</div>

Hello 👋

**[EDGE CASE]**

There is an issue with the translation/localization feature for **Custom Sidebar Sections/Links**.

If a custom sidebar section or link is created while the site’s `default locale` setting is set to Language A (e.g., English), but the site’s `default locale` is later changed to Language B (e.g., Hungarian), the existing custom sidebar records do not adapt to the new default locale.

As a result, the UI misinterprets the base/default input field, causing language options in the translation dropdown to be completely swapped and scrambled.

### Steps to Reproduce

1. Set `default locale` Site Setting to **English**.

2. Create a new custom sidebar section/link, but enter the text in **Hungarian** (because the user locale was Hungarian for me) (e.g., set base label as `"Főoldal"` and path as `"/"`). I didn’t localized it because there wasn’t a feature to do this yet.

3. Change the site’s `default locale` Site Setting to **Hungarian** (`hu`).

4. Edit the custom sidebar section created in Step 2 and try to translate it:

Thanks

---

_[View the full topic](https://meta.discourse.org/t/custom-sidebar-section-translations-break-after-changing-the-sites-default-locale/408327)._
