# How to translate items added via "Edit Custom Section" and Theme \<head\>?

**URL:** https://meta.discourse.org/t/how-to-translate-items-added-via-edit-custom-section-and-theme-head/407503
**Category:** Support
**Created:** [July 13, 2026, 8:17pm UTC](https://meta.discourse.org/t/how-to-translate-items-added-via-edit-custom-section-and-theme-head/407503 "2026-07-13T20:17:33Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [July 13, 2026, 8:53pm UTC](https://meta.discourse.org/t/how-to-translate-items-added-via-edit-custom-section-and-theme-head/407503/2 "2026-07-13T20:53:46Z")

</div>

There is a feature request for #1 here: [Feature request: make it possible to translate custom sidebar links and sections](https://meta.discourse.org/t/feature-request-make-it-possible-to-translate-custom-sidebar-links-and-sections/299871). So I don’t think it’s currently possible. You can vote on it to show that it matters to you.  
That said, I know custom badges can be translated via the rails console, but I haven’t tried if that also works for the sidebar. In case you want to try it, it was explained here: [How can badges and groups be localized (multilingual)? - #8 by nat](https://meta.discourse.org/t/how-can-badges-and-groups-be-localized-multilingual/398127/8)

Theme components support localization. There is a short guide about it here:

> [@Add localizable strings to themes and theme components](https://meta.discourse.org/t/add-localizable-strings-to-themes-and-theme-components/109867):
>
> For those looking to add custom languages and translations to a Discourse theme or theme component, they [can now include](https://github.com/discourse/discourse/commit/880311dd4d2b367e54cc8244fba60fce69e121c3) localised strings, which are made available for use in UI components. Translations are stored in the same format as core/plugin translations, and can be used in almost the same way. Themes can supply translation files in a format like /locales/{locale}.yml. These files should be valid YAML, with a single top level key equal to the locale being defined. These can be defined us…

I usually prefer to look at examples. There are lots of theme components in #Customization > Theme component. I think [Topic Status Filter](https://meta.discourse.org/t/topic-status-filter/111307?silent=true) is a quite simple one. [Custom Top Navigation Links](https://meta.discourse.org/t/custom-top-navigation-links/87225?silent=true) might be a helpful example too. It’s closer to what you want to do, but it doesn’t support localizable links, because combining that with them being configurable is difficult.  
I don’t know if something similar is possible directly in the `<head>` section.

---

_[View the full topic](https://meta.discourse.org/t/how-to-translate-items-added-via-edit-custom-section-and-theme-head/407503)._
