Skip to content

Enhancement: Extend the i18n/language button #850

@wottpal

Description

@wottpal

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:

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    In BETAThe current task is available for testing in the BETA version.ReleasedThe task has been releasedenhancementNew feature or requestv10.5.0Project: v10.5.0

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions