为自定义标题链接制作主题翻译

我正在尝试修改 David Taylor 的主题中使用的这段代码:

I18n.t(themePrefix("my_translation_key"))

参考链接:Add localizable strings to themes and theme components

<script type="text/discourse-plugin" version="0.8.20">
  // 为 <html> 标签添加一个属性。这可能有助于用户对其头部链接进行样式设置
  $('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;
</script>

并添加一个 locales/en.yml 文件。

但得到的结果是 [en.theme_translations.87.header_nav_link]

……所以我是不是哪里做错了?