]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs(zh): translate the last paragraph of named_routes to Chinese (#2141)
authorQuanzhi Fu <82163913+fqzz2000@users.noreply.github.com>
Sat, 17 Feb 2024 17:46:18 +0000 (12:46 -0500)
committerGitHub <noreply@github.com>
Sat, 17 Feb 2024 17:46:18 +0000 (01:46 +0800)
* translate the last paragraph of named routes docs

* docs(zh): translate last paragraph of named-routes to Chinese

*  translate the last paragraph of `named-routes` in `zh`

* Apply suggestions from code review

---------

Co-authored-by: quanzhi <qf37@duke.edu>
Co-authored-by: Jinjiang <zhaojinjiang@me.com>
packages/docs/zh/guide/essentials/named-routes.md

index 81bb0b60f431866d9a60f37bf80ac9205c47effb..9bd05c4e64227885da4d02ff3a376376dd839f28 100644 (file)
@@ -40,6 +40,4 @@ router.push({ name: 'user', params: { username: 'erina' } })
 
 完整的例子在[这里](https://github.com/vuejs/vue-router/blob/dev/examples/named-routes/app.js).
 
-<!-- TODO: translation -->
-
-Each name **must be unique** across all routes. If you add the same name to multiple routes, the router will only keep the last one. You can read more about this [in the Dynamic Routing](../advanced/dynamic-routing.md#Removing-routes) section.
+所有路由的命名**都必须是唯一的**。如果为多条路由添加相同的命名,路由器只会保留最后那一条。你可以在[动态路由](../advanced/dynamic-routing.md#Removing-routes)章节了解更多。