Add this at the top of your component
const I18n = require("I18n").default;
You can then use something like this when you need to use the default Discourse text
I18n.t("TRANSLATION_KEY")
For example this
h('span', 'Chia sẻ qua Facebook')
becomes
h("span", I18n.t("share.facebook"))