From 41295be1f71cbefa2174294c8fc7713fe5277da6 Mon Sep 17 00:00:00 2001 From: Naoki Endoh Date: Sun, 31 Oct 2021 14:59:25 +0900 Subject: [PATCH] docs: translate sfc spec --- src/.vuepress/config.js | 6 ++-- src/api/sfc-spec.md | 68 ++++++++++++++++++++--------------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/.vuepress/config.js b/src/.vuepress/config.js index fd90c3ad..6ff752e7 100644 --- a/src/.vuepress/config.js +++ b/src/.vuepress/config.js @@ -164,11 +164,11 @@ const sidebar = { collapsable: false, children: [ { - title: 'Spec', + title: '仕様', path: '/api/sfc-spec' }, { - title: 'Tooling', + title: 'ツール', path: '/api/sfc-tooling' }, { @@ -176,7 +176,7 @@ const sidebar = { path: '/api/sfc-script-setup' }, { - title: ' ``` -Note the intergration with pre-processors may differ based on the toolchain. Check out the respective documentations for examples: +プリプロセッサとの統合はツールチェーンによって異なる場合があることに注意してください。例については、各ドキュメントを参照してください: - [Vite](https://vitejs.dev/guide/features.html#css-pre-processors) - [Vue CLI](https://cli.vuejs.org/guide/css.html#pre-processors) @@ -109,7 +109,7 @@ Note the intergration with pre-processors may differ based on the toolchain. Che ## Src Imports -If you prefer splitting up your `*.vue` components into multiple files, you can use the `src` attribute to import an external file for a language block: +`*.vue` コンポーネントを複数のファイルに分割したい場合は、`src` 属性を使って、言語ブロックに外部ファイルをインポートできます: ```vue @@ -117,23 +117,23 @@ If you prefer splitting up your `*.vue` components into multiple files, you can ``` -Beware that `src` imports follow the same path resolution rules as webpack module requests, which means: +`src` インポートは webpack のモジュールリクエストと同じパス解決ルールに従うことに注意してください。つまり次のことです: -- Relative paths need to start with `./` -- You can import resources from npm dependencies: +- 相対パスは `./` から始まる必要があります +- npm の依存関係からリソースをインポートできます: ```vue - +