Estou tentando alterar isto usando o tópico de David Taylor
I18n.t(themePrefix("my_translation_key"))
em Add localizable strings to themes and theme components
<script type="text/discourse-plugin" version="0.8.20">
// Adiciona um atributo à tag <html>. Isso pode ajudar o usuário a estilizar
// seus links do cabeçalho
$('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;
e adicionei um locales/en.yml
mas obtenho o resultado [en.theme_translations.87.header_nav_link]
…então, estou fazendo algo errado?
