[Solved] Plugins specific languages and translation

NodeBB Development
  • What the best approach to handle "Plugins" specific languages and translation?

    Say i have a plugin, and i would like its "templates" (or JS) to use the translator, however, the keys are plugin-specific, for example:

    "Wrong Captcha"

    • Do I submit that to the NodeBB core language files?

    Is there a way to extend these files and report back to Transifex? or maybe should we just have a


    maybe generate this list of file automatically using npm API, kinda how you do for the ACP > Plugins tab?

    or could we do this the other way around? give each plugin the ability to extend the Translator's data, or feed it a language file? but how does that play with transifex? each plugin would need its own project right?

    I don't think it's a high priority issue, just something to think about.

  • hey I just committed something like this a few days ago: https://github.com/NodeBB/NodeBB/issues/1865 let me know if that's what you're looking for


    each plugin would need its own project right? and yeah, ideally

  • awesome! thanks

Suggested Topics