From ba786c349449cf36976adcec346f7cc2b3bb3bb2 Mon Sep 17 00:00:00 2001 From: Johnson Chu Date: Mon, 22 Apr 2024 09:51:02 +0900 Subject: [PATCH] feat(language-service): add Russian, Czech localization support --- .../data/language-blocks/cs.json | 1034 ++++++++++++ .../data/language-blocks/en.json | 204 +++ .../data/language-blocks/fr.json | 204 +++ .../data/language-blocks/it.json | 204 +++ .../data/language-blocks/ja.json | 204 +++ .../data/language-blocks/ko.json | 204 +++ .../data/language-blocks/pt.json | 204 +++ .../data/language-blocks/ru.json | 1034 ++++++++++++ .../data/language-blocks/zh-cn.json | 204 +++ .../data/model-modifiers/cs.json | 176 ++ .../data/model-modifiers/en.json | 36 + .../data/model-modifiers/fr.json | 36 + .../data/model-modifiers/it.json | 36 + .../data/model-modifiers/ja.json | 36 + .../data/model-modifiers/ko.json | 36 + .../data/model-modifiers/pt.json | 36 + .../data/model-modifiers/ru.json | 176 ++ .../data/model-modifiers/zh-cn.json | 36 + .../language-service/data/template/cs.json | 1498 +++++++++++++++++ .../language-service/data/template/en.json | 312 ++++ .../language-service/data/template/fr.json | 312 ++++ .../language-service/data/template/it.json | 312 ++++ .../language-service/data/template/ja.json | 312 ++++ .../language-service/data/template/ko.json | 312 ++++ .../language-service/data/template/pt.json | 312 ++++ .../language-service/data/template/ru.json | 1498 +++++++++++++++++ .../language-service/data/template/zh-cn.json | 312 ++++ packages/language-service/lib/plugins/data.ts | 18 + .../scripts/update-html-data.js | 18 + 29 files changed, 9316 insertions(+) create mode 100644 packages/language-service/data/language-blocks/cs.json create mode 100644 packages/language-service/data/language-blocks/ru.json create mode 100644 packages/language-service/data/model-modifiers/cs.json create mode 100644 packages/language-service/data/model-modifiers/ru.json create mode 100644 packages/language-service/data/template/cs.json create mode 100644 packages/language-service/data/template/ru.json diff --git a/packages/language-service/data/language-blocks/cs.json b/packages/language-service/data/language-blocks/cs.json new file mode 100644 index 0000000000..eb9d39b51d --- /dev/null +++ b/packages/language-service/data/language-blocks/cs.json @@ -0,0 +1,1034 @@ +{ + "version": 1.1, + "tags": [ + { + "name": "template", + "attributes": [ + { + "name": "src", + "description": { + "kind": "markdown", + "value": "\nPokud dáváte přednost rozdělení vašich `*.vue` komponent do více souborů, můžete použít atribut `src` pro import externího souboru do příslušného bloku jazyka:\n\n```vue\n\n\n\n```\n\nPozor na to, že pro importy pomocí `src` platí stejná pravidla pro zadávání cest jako pro požadavky na webpack moduly, což znamená:\n\n- Relativní cesty musí začínat s `./`\n- Můžete importovat zdroje z npm závislostí:\n\n```vue\n\n\n```\n\nDejte pozor, že integrace s různými pre-procesory se může lišit podle zvolené sady softwarových nástrojů. Pro příklady se podívejte do příslušné dokumentace:\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" + }, + { + "name": "cs", + "url": "https://cs.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "ru", + "url": "https://ru.vuejs.org/api/sfc-spec.html#pre-processors" + }, + { + "name": "fa", + "url": "https://fa.vuejs.org/api/sfc-spec.html#pre-processors" + } + ] + } + ], + "description": { + "kind": "markdown", + "value": "\n- Každý soubor `*.vue` může obsahovat maximálně jeden blok `