From fedfb57bd668c3c2ee7b67f41d9a28c42dae5bcd Mon Sep 17 00:00:00 2001 From: linonetwo Date: Tue, 29 Oct 2024 18:20:23 +0800 Subject: [PATCH] Update LanguageSwitcher.tid --- wiki/tiddlers/LanguageSwitcher.tid | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wiki/tiddlers/LanguageSwitcher.tid b/wiki/tiddlers/LanguageSwitcher.tid index e914e71..b833927 100644 --- a/wiki/tiddlers/LanguageSwitcher.tid +++ b/wiki/tiddlers/LanguageSwitcher.tid @@ -2,11 +2,13 @@ list-after: $:/core/ui/ViewTemplate/tags tags: ExcludeFromEmpty $:/tags/ViewTemplate title: LanguageSwitcher +<%if [is[system]] %> <$list filter="[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]" variable="lang"> -<$list filter="[search[zh]]"> +<%if [search[zh]] %> <$button set="$:/language" setTo="$:/languages/en-GB" style="">πŸ‡¬πŸ‡§ Switch to English - -<$list filter="[!search[zh]]"> +<%endif%> +<%if [!search[zh]] %> <$button set="$:/language" setTo="$:/languages/zh-Hans" style="">πŸ‡¨πŸ‡³ εˆ‡ζ’θ‡³δΈ­ζ–‡ +<%endif%> - \ No newline at end of file +<%endif%> \ No newline at end of file