Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IDEA] Allow plugin.info to have translations #8173

Open
linonetwo opened this issue May 1, 2024 · 1 comment
Open

[IDEA] Allow plugin.info to have translations #8173

linonetwo opened this issue May 1, 2024 · 1 comment

Comments

@linonetwo
Copy link
Contributor

linonetwo commented May 1, 2024

Is your feature request related to a problem? Please describe.

translate plugin name and description when they are not installed yet

Discussed on feat: t macro and docs #7821 (comment)

Describe the solution you'd like

plugin.info is a JSON (I'm not sure what it become after install, but should be a JSON tiddler too?), so instead of use field like name::fr-FR, we should use

{
  name: 'default name',
  languages: {
    zh-Hans: '中文名',
    fr-FR: 'xxx',
  }
}

Describe alternatives you've considered

I'm afraid flatten field like name::fr-FR will make a long list and difficult to maintain.

Additional context

Make everything fully international.

@Jermolene
Copy link
Owner

Hi @linonetwo the contents of plugin.info is flattened into tiddler fields as plugins are loaded, which implies that the language processing would have to be done as the plugin was constructed under Node.js. So, I think it would be more useful if the available translations were all retained so that the single file configuration of TiddlyWiki could also choose the best language to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants