Je tente de modifier ceci en utilisant le sujet de David Taylor :
I18n.t(themePrefix("my_translation_key"))
sur Add localizable strings to themes and theme components
<script type="text/discourse-plugin" version="0.8.20">
// Ajoute un attribut à la balise <html>. Cela pourrait aider l'utilisateur à styliser
// ses liens d'en-tête
$('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;
et d’ajouter un fichier locales/en.yml
mais j’obtiens le résultat [en.theme_translations.87.header_nav_link]
…donc, j’ai fait quelque chose de mal ?
