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:
If files in other locales are not yet existent, create them.
If files in other locales are existent, open/toggle them.
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.

**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:
* If files in other locales are not yet existent, create them.
* If files in other locales are existent, open/toggle them.
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.
<!-- github-sync-id:2534242260 -->
@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 Could you give me some hints where to stark looking into if I want to try to tackle this myself in a PR? :)
<!-- github-comment-id:2394458146 -->
To start working on this, you will have to look at the following things:
- Registration of the `i18n` action in the editor title bar - https://github.com/estruyf/vscode-front-matter/blob/3d8c550f601cac63563fa17da25047a2076d6a84/package.json#L2450-L2454
- The `frontMatter.i18n.create` command: https://github.com/estruyf/vscode-front-matter/blob/3d8c550f601cac63563fa17da25047a2076d6a84/src/commands/i18n.ts#L260
Let me know if you need help on this one.
<!-- github-comment-id:2394971648 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Current Behavior:
In a multilingual setup, I can auto-create
md|mdxfiles 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.@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:
i18naction in the editor title bar - https://github.com/estruyf/vscode-front-matter/blob/3d8c550f601cac63563fa17da25047a2076d6a84/package.json#L2450-L2454frontMatter.i18n.createcommand: https://github.com/estruyf/vscode-front-matter/blob/3d8c550f601cac63563fa17da25047a2076d6a84/src/commands/i18n.ts#L260Let me know if you need help on this one.