How to translate 3rd party plugin demo website?

Simillar to How to translate 3rd party plugin? , I now want to make demo site also translated.

@Sttot in his ECharts plugin use this technique:

<$list filter="[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]" variable="lang">

<$list filter="[<lang>search[zh]]">
很久以前....
</$list>

<$list filter="[<lang>!search[zh]]">
When I first started using ~TiddlyWiki a long time ago, ....
</$list>

</$list>

@oflg write docs in two separate HTML https://tiddlymemo.org/manual/ and https://tiddlymemo.org/manual/zh-Hans

They are separated editions TiddlyMemo/editions at master · oflg/TiddlyMemo · GitHub

And me, I want to try put translations in a plugin, and by enabling and disabling that plugin, the language will be switched. (Don’t know if this requires a reload, better no.) Haven’t try this, but this is what I’m going to do.

Do you have other example of tiddlywiki site with two or more languages? And what is your technique to translate the documentation?

2 Likes