feat: Add action to create or open translation file dynamically

This commit is contained in:
Dennis Zoma
2024-10-07 08:04:29 +02:00
parent 788d0241fd
commit aea87a6168
6 changed files with 226 additions and 4 deletions
+10 -1
View File
@@ -2393,6 +2393,15 @@
"title": "%command.frontMatter.cache.clear%",
"category": "Front Matter"
},
{
"command": "frontMatter.i18n.createOrOpen",
"title": "%command.frontMatter.i18n.createOrOpen%",
"category": "Front Matter",
"icon": {
"light": "assets/icons/i18n-light.svg",
"dark": "assets/icons/i18n-dark.svg"
}
},
{
"command": "frontMatter.i18n.create",
"title": "%command.frontMatter.i18n.create%",
@@ -2448,7 +2457,7 @@
"when": "frontMatter:file:isValid == true"
},
{
"command": "frontMatter.i18n.create",
"command": "frontMatter.i18n.createOrOpen",
"group": "navigation@-127",
"when": "frontMatter:file:isValid && frontMatter:i18n:enabled"
},