Skip to content

Commit cdc0a70

Browse files
authored
docs: translate guide/routing.md (#42) (#84)
1 parent 2039b20 commit cdc0a70

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/guide/routing.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Routing
1+
# ルーティング
22

3-
## Official Router
3+
## 公式ルータ
44

5-
For most Single Page Applications, it's recommended to use the officially-supported [vue-router library](https://github.com/vuejs/vue-router). For more details, see vue-router's [documentation](https://router.vuejs.org/).
5+
ほとんどのシングルページアプリケーションでは、公式にサポートされている [vue-router ライブラリ](https://github.com/vuejs/vue-router)を使うことをオススメします。詳細は vue-router[ドキュメント](https://router.vuejs.org/)を参照してください。
66

7-
## Simple Routing from Scratch
7+
## スクラッチからのシンプルなルーティング
88

9-
If you only need very simple routing and do not wish to involve a full-featured router library, you can do so by dynamically rendering a page-level component like this:
9+
とてもシンプルなルーティングだけが必要で、フル機能のルータライブラリを使用したくない場合は、以下のようにページレベルのコンポーネントで動的にレンダリングができます。
1010

1111
```js
1212
const NotFoundComponent = { template: '<p>Page not found</p>' }
@@ -37,8 +37,8 @@ const SimpleRouter = {
3737
Vue.createApp(SimpleRouter).mount('#app')
3838
```
3939

40-
Combined with the [History API](https://developer.mozilla.org/en-US/docs/Web/API/History_API/Working_with_the_History_API), you can build a very basic but fully-functional client-side router. To see that in practice, check out [this example app](https://github.com/phanan/vue-3.0-simple-routing-example).
40+
[History API](https://developer.mozilla.org/en-US/docs/Web/API/History_API/Working_with_the_History_API) と組み合わせることで、とても基本的ですが完全に機能するクライアント側のルータを構築できます。実際に確認するには、[このサンプルアプリ](https://github.com/phanan/vue-3.0-simple-routing-example)をチェックしてみてください。
4141

42-
## Integrating 3rd-Party Routers
42+
## サードパーティ製ルータとの統合
4343

44-
If there's a 3rd-party router you prefer to use, such as [Page.js](https://github.com/visionmedia/page.js) or [Director](https://github.com/flatiron/director), integration is [similarly straightforward](https://github.com/phanan/vue-3.0-simple-routing-example/compare/master...pagejs). Here's a [complete example](https://github.com/phanan/vue-3.0-simple-routing-example/tree/pagejs) using Page.js.
44+
[Page.js](https://github.com/visionmedia/page.js) [Director](https://github.com/flatiron/director) のようなサードパーティ製のルータを使いたい場合は、統合は[同様に簡単](https://github.com/phanan/vue-3.0-simple-routing-example/compare/master...pagejs)です。ここに、Page.js を使った[サンプル](https://github.com/phanan/vue-3.0-simple-routing-example/tree/pagejs)があります。

0 commit comments

Comments
 (0)