A Discourse plugin that allows multiple localized versions of post content.
This plugin is a proof-of-concept : without the possibility to localize topic titles, it is not very useful.
In a post, use
[lang=en] Hello World! [/lang] [lang=fr] Bonjour monde ! [/lang] [lang=de] Hallo Welt ! [/lang]
Hallo Welt !
Country codes must be 2-letter long (regions are not supported).
When rendering a post, the plugin seeks one
[lang=xx] block to display. It will stop seeking once it has found:
- the block set for the language of the user (as selected by Discourse)
- the block set for the default language of the Discourse instance
- the first block