The discussion revolves around displaying localized strings in Discourse themes and components. Bcat seeks help on correctly using the default js.share.facebook string in their theme, referencing a guide on localizable strings. Johani advises importing I18n with const I18n = require("I18n").default; to access translation keys like I18n.t("share.facebook"). wyudong notes that the I18n module is no longer global in recent Discourse versions, requiring explicit import. Bcat confirms that using I18n.t("share.facebook") works without the import, possibly due to version differences. Johani clarifies that the bulk update of files was done via a script, not manually, addressing Bcat’s concern about the effort involved.
I have created Tocic Share but want to use the default js.share.facebook example, but according to this article, I wrote it wrong so it doesn’t show.
Can show me how to display properly instead of adding new words to the topic
I am wondering you have to change each file then commit. Or have it automatically (change multiple files at once)
This question is not important. If with personal knowledge maybe I will change each file and it takes all day
GIT, I don’t have much experience.