Ich versuche, dies zu ändern, indem ich David Taylors Thema verwende:
I18n.t(themePrefix("my_translation_key"))
in Add localizable strings to themes and theme components
<script type="text/discourse-plugin" version="0.8.20">
// Füge ein Attribut zum <html>-Tag hinzu. Dies könnte dem Benutzer helfen,
// seine Header-Links zu stylen
$('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;
und füge eine locales/en.yml hinzu
aber erhalte das Ergebnis [en.theme_translations.87.header_nav_link]
…also mache ich etwas falsch?
