![]()
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.
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 ![]()