From c143c14d6421fcce03a82ba7f0c0073160514da5 Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Thu, 12 Oct 2023 19:39:38 +0800 Subject: [PATCH] feat(language-service): add Italian language --- packages/vscode-vue/package.json | 2 +- .../data/language-blocks/en.json | 136 ++ .../data/language-blocks/fr.json | 136 ++ .../data/language-blocks/it.json | 830 ++++++++++++ .../data/language-blocks/ja.json | 136 ++ .../data/language-blocks/ko.json | 136 ++ .../data/language-blocks/pt.json | 136 ++ .../data/language-blocks/zh-cn.json | 136 ++ .../data/model-modifiers/en.json | 24 + .../data/model-modifiers/fr.json | 24 + .../data/model-modifiers/it.json | 140 ++ .../data/model-modifiers/ja.json | 24 + .../data/model-modifiers/ko.json | 24 + .../data/model-modifiers/pt.json | 24 + .../data/model-modifiers/zh-cn.json | 24 + .../data/template/en.json | 208 +++ .../data/template/fr.json | 208 +++ .../data/template/it.json | 1186 +++++++++++++++++ .../data/template/ja.json | 208 +++ .../data/template/ko.json | 208 +++ .../data/template/pt.json | 208 +++ .../data/template/zh-cn.json | 208 +++ .../scripts/update-html-data.js | 12 + .../vue-language-service/src/plugins/data.ts | 43 +- 24 files changed, 4398 insertions(+), 23 deletions(-) create mode 100644 packages/vue-language-service/data/language-blocks/it.json create mode 100644 packages/vue-language-service/data/model-modifiers/it.json create mode 100644 packages/vue-language-service/data/template/it.json diff --git a/packages/vscode-vue/package.json b/packages/vscode-vue/package.json index 9977a0a89e..32623b63e3 100644 --- a/packages/vscode-vue/package.json +++ b/packages/vscode-vue/package.json @@ -474,7 +474,7 @@ "items": { "type": "string" }, - "default": [], + "default": [ ], "description": "List any additional file extensions that should be processed as Vue files (requires restart)." }, "vue.server.fullCompletionList": { diff --git a/packages/vue-language-service/data/language-blocks/en.json b/packages/vue-language-service/data/language-blocks/en.json index ae0e0316af..04d9adc065 100644 --- a/packages/vue-language-service/data/language-blocks/en.json +++ b/packages/vue-language-service/data/language-blocks/en.json @@ -38,6 +38,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#src-imports" } ] }, @@ -83,6 +91,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#pre-processors" } ] } @@ -119,6 +135,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#template" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#template" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#template" } ] }, @@ -159,6 +183,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#src-imports" } ] }, @@ -210,6 +242,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#pre-processors" } ] }, @@ -251,6 +291,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#script-setup" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#script-setup" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#script-setup" } ] } @@ -287,6 +335,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#script" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#script" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#script" } ] }, @@ -325,6 +381,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#script-setup" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#script-setup" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#script-setup" } ] }, @@ -365,6 +429,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#src-imports" } ] }, @@ -422,6 +494,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#pre-processors" } ] }, @@ -460,6 +540,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-css-features.html#scoped-css" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-css-features.html#scoped-css" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-css-features.html#scoped-css" } ] }, @@ -498,6 +586,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-css-features.html#css-modules" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-css-features.html#css-modules" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-css-features.html#css-modules" } ] } @@ -534,6 +630,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#style" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#style" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#style" } ] }, @@ -574,6 +678,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#src-imports" } ] } @@ -610,6 +722,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#custom-blocks" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#custom-blocks" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#custom-blocks" } ] } @@ -650,6 +770,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#pre-processors" } ] }, @@ -687,6 +815,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#src-imports" } ] } diff --git a/packages/vue-language-service/data/language-blocks/fr.json b/packages/vue-language-service/data/language-blocks/fr.json index 92a6081c19..a8f440e8b4 100644 --- a/packages/vue-language-service/data/language-blocks/fr.json +++ b/packages/vue-language-service/data/language-blocks/fr.json @@ -38,6 +38,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#src-imports" } ] }, @@ -83,6 +91,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#pre-processors" } ] } @@ -119,6 +135,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#template" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#template" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#template" } ] }, @@ -159,6 +183,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#src-imports" } ] }, @@ -210,6 +242,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#pre-processors" } ] }, @@ -251,6 +291,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#script-setup" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#script-setup" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#script-setup" } ] } @@ -287,6 +335,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#script" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#script" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#script" } ] }, @@ -325,6 +381,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#script-setup" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#script-setup" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#script-setup" } ] }, @@ -365,6 +429,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#src-imports" } ] }, @@ -422,6 +494,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#pre-processors" } ] }, @@ -460,6 +540,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-css-features.html#scoped-css" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-css-features.html#scoped-css" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-css-features.html#scoped-css" } ] }, @@ -498,6 +586,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-css-features.html#css-modules" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-css-features.html#css-modules" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-css-features.html#css-modules" } ] } @@ -534,6 +630,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#style" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#style" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#style" } ] }, @@ -574,6 +678,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#src-imports" } ] } @@ -610,6 +722,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#blocs-personnalisés" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#blocs-personnalisés" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#blocs-personnalisés" } ] } @@ -650,6 +770,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#pre-processors" } ] }, @@ -687,6 +815,14 @@ { "name": "pt", "url": "https://pt.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#src-imports" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#src-imports" } ] } diff --git a/packages/vue-language-service/data/language-blocks/it.json b/packages/vue-language-service/data/language-blocks/it.json new file mode 100644 index 0000000000..bb06f16f9e --- /dev/null +++ b/packages/vue-language-service/data/language-blocks/it.json @@ -0,0 +1,830 @@ +{ + "version": 1.1, + "tags": [ + { + "name": "template", + "attributes": [ + { + "name": "src", + "description": { + "kind": "markdown", + "value": "\nSe preferisci suddividere i tuoi componenti `*.vue` in file multipli, puoi utilizzare l'attributo `src` per importare un file esterno per un blocco di linguaggio:\n\n```vue\n\n\n\n```\n\nTieni presente che gli import `src` seguono le stesse regole di risoluzione del percorso delle richieste dei moduli webpack, il che significa:\n\n- I percorsi relativi devono iniziare con `./`\n- Puoi importare risorse tramite dipendenze npm:\n\n```vue\n\n\n```\n\nTieni presente che l'integrazione con diversi pre-processori può variare in base alla catena di strumenti utilizzata. Consulta la rispettiva documentazione per ulteriori esempi:\n\n- [Vite](https://vitejs.dev/guide/features.html#css-pre-processors)\n- [Vue CLI](https://cli.vuejs.org/guide/css.html#pre-processors)\n- [webpack + vue-loader](https://vue-loader.vuejs.org/guide/pre-processors.html#using-pre-processors)\n" + }, + "values": [ + { + "name": "html" + }, + { + "name": "pug" + } + ], + "references": [ + { + "name": "en", + "url": "https://vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "zh-cn", + "url": "https://cn.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "ja", + "url": "https://ja.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "ua", + "url": "https://ua.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "fr", + "url": "https://fr.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "ko", + "url": "https://ko.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "pt", + "url": "https://pt.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "bn", + "url": "https://bn.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "it", + "url": "https://it.vuejs.org/api/sfc-spec.html#pre-processors" + } + ] + } + ], + "description": { + "kind": "markdown", + "value": "\n- Ogni file `*.vue` può contenere massimo un blocco `