I’m trying to change this use David Taylor’s topic
I18n.t(themePrefix("my_translation_key"))
in Add localizable strings to themes and theme components
<script type="text/discourse-plugin" version="0.8.20">
// Add an attribute to the <html> tag. This might help the user to style
// his header links
$('html').attr('dhp-locale', I18n.locale)
const customHeaderLinks = I18n.t(themePrefix("header_nav_link"));
if (!customHeaderLinks.length) return;
const h = require("virtual-dom").h;
const headerLinks = [];
const mobileView = api.container.lookup("site:main").mobileView;
and add a locales/en.yml
but get the [en.theme_translations.87.header_nav_link] resuilt
…so, i do someting wrong?