Open wottpal opened 2 weeks 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? :)
To start working on this, you will have to look at the following things:
i18n
action in the editor title bar - https://github.com/estruyf/vscode-front-matter/blob/3d8c550f601cac63563fa17da25047a2076d6a84/package.json#L2450-L2454frontMatter.i18n.create
command: https://github.com/estruyf/vscode-front-matter/blob/3d8c550f601cac63563fa17da25047a2076d6a84/src/commands/i18n.ts#L260Let me know if you need help on this one.
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.