estruyf / vscode-front-matter

Front Matter is a CMS running straight in Visual Studio Code. Can be used with static site generators like Hugo, Jekyll, Hexo, NextJs, Gatsby, and many more...
https://frontmatter.codes
MIT License
1.95k stars 77 forks source link

Enhancement: Extend the i18n/language button #850

Open wottpal opened 2 weeks ago

wottpal commented 2 weeks ago

CleanShot 2024-09-18 at 18 52 18@2x

Current Behavior: In a multilingual setup, I can auto-create md|mdx files in all other defined languages. After these are created, the button is basically useless.

Desired/Extended Behavior: In our case it's a pretty common scenario that we are toggling between different locales of one and the same page. I imagine the current i18n-button being extended to handle both cases:

The only small detail (UX consideration) here is: What if there are more than two locales? – I would suggest in this case, a dropdown/menu (QuickPick) opens that lets the user decide which locale to create and/or open.

wottpal commented 1 day ago

@estruyf Could you give me some hints where to stark looking into if I want to try to tackle this myself in a PR? :)

estruyf commented 1 day ago

To start working on this, you will have to look at the following things:

Let me know if you need help on this one.