Creando una traducción de tema para Custom Header Links

Estoy intentando cambiar esto usando el tema de David Taylor:

 I18n.t(themePrefix("my_translation_key"))

en Add localizable strings to themes and theme components

<script type="text/discourse-plugin" version="0.8.20">
  // Agrega un atributo a la etiqueta <html>. Esto podría ayudar al usuario a estilizar
  // sus enlaces de encabezado
  $('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;

y agregar un locales/en.yml

pero obtengo el resultado [en.theme_translations.87.header_nav_link]


…¿entonces, estoy haciendo algo mal?

1 me gusta