# Add custom menu panel to the correct location (same as hamburger menu panel)

**URL:** <https://meta.discourse.org/t/add-custom-menu-panel-to-the-correct-location-same-as-hamburger-menu-panel/119364>\
**Category:** Development\
**Created:** [3 ביוני,‏ 2019,‏ 9:47am UTC](https://meta.discourse.org/t/add-custom-menu-panel-to-the-correct-location-same-as-hamburger-menu-panel/119364 "2019-06-03T09:47:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [6 בנובמבר,‏ 2019,‏ 2:57pm UTC](https://meta.discourse.org/t/add-custom-menu-panel-to-the-correct-location-same-as-hamburger-menu-panel/119364/5 "2019-11-06T14:57:21Z")

</div>

> [@thwright](#):
>
> I’ve been wracking my brain on this one for a little while

✊

I took a look and I’m pretty sure none of this is your fault, the code you’re using should work.

The issue here is that the title attribute for the header dropdown widget is expecting a translation key, not a translation function.

> <https://github.com/discourse/discourse/blob/dceb72bc69cd1df03f48867febb0e0531f72bc8f/app/assets/javascripts/discourse/widgets/header.js.es6#L143>

So when you use this in a theme

`title: I18n.t(themePrefix("mysite.menu_title"))`

you’re essentially nesting two translation functions.

The one in your theme returns whatever string you set in the locale file. In this case it’s

`Some title`

The one in the widget code then takes that string and process it as a translation key like so

`I18n.t('Some title')`

which obviously does not exist, so you see the issue you reported, where it returns

`[en_US.Some Title]`

In other words, this is a bug in core. We’ll get it fixed 👍

---

_[View the full topic](https://meta.discourse.org/t/add-custom-menu-panel-to-the-correct-location-same-as-hamburger-menu-panel/119364)._
