1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-09 13:34:21 +00:00
TiddlyWiki5/core/wiki/minilanguageswitcher.tid
Jermolene dea08ed4f8 First pass at language plugins for internationalisation
Still quite a few details to work out, but this shows the basic idea of
re-using the theme mechanism to handle language plugins.

Comments and questions welcome.
2014-02-09 19:18:46 +00:00

6 lines
470 B
Plaintext

title: $:/snippets/minilanguageswitcher
<$linkcatcher to="$:/language">
<$list filter="[plugin-type[language]sort[title]]"><div><$reveal state="$:/language" type="match" text={{!!title}}>&bull;</$reveal><$reveal state="$:/language" type="nomatch" text={{!!title}}>&nbsp;</$reveal> <$link to={{!!title}}><$view field="description" format="text"><$view field="name" format="text"><$view field="title" format="text"/></$view></$view></$link></div>
</$list>
</$linkcatcher>