إنشاء ترجمة سمة لروابط الرأس المخصصة

أحاول تغيير هذا باستخدام موضوع ديفيد تايلور

 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;

وأضيف ملف locales/en.yml

لكنني أحصل على نتيجة [en.theme_translations.87.header_nav_link]


…إذن، هل أخطأت في شيء ما؟