TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
7.97k stars 1.18k forks source link

[IDEA] Display language plugins' info page properly #8345

Closed Leilei332 closed 2 weeks ago

Leilei332 commented 2 months ago

Is your feature request related to a problem? Please describe. Yes. When I opened language plugins from the control panel, the raw json was displayed rather than an info page showing its contents. This may cause the whole page to crash (when the json is very large).

Describe the solution you'd like An info page showing the contents of the language plugin (like the normal plugins and themes).

Describe alternatives you've considered An info page showing some sample text, like "删除" for zh-CN and zh-Hans, "Delete" for en-US while "supprimer" for fr-FR.

pmario commented 2 months ago

For me it looks like this. It does show the content. So may be one of your theme or plugins did change something

image

Jermolene commented 2 months ago

Thank you @Leilei332 I can confirm the issue

@pmario - you need to click the language plugin within control panel to load it as a separate tiddler:

image
Leilei332 commented 2 months ago

Looks like language plugins were applied code body defined in cascade $:/config/ViewTemplateBodyFilters/system. Since it has a higher priority, the cascade $:/config/ViewTemplateBodyFilters/plugin was ignored.

The problem was fixed after I used regexp to match tiddler in $:/config/ViewTemplateBodyFilters/system.

图片