Skip to content

Commit

Permalink
docs: specify that routeId in example is not hard-coded (#1216)
Browse files Browse the repository at this point in the history
Co-authored-by: Rafal Chlodnicki <rchl2k@gmail.com>
  • Loading branch information
acerspyro and rchl committed Jun 29, 2021
1 parent 5de6ca2 commit 16105c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/content/en/lang-switcher.md
Expand Up @@ -71,7 +71,7 @@ Make sure that Vuex [is enabled](https://nuxtjs.org/guides/directory-structure/s

To provide dynamic parameters translations, dispatch the `i18n/setRouteParams` mutation as early as possible when loading a page. The passed in object must contain the mappings from the locale `code` to an object with a mapping from slug name to expected slug value for given locale.

An example:
An example (replace `postId` with the appropriate route parameter):

```vue
<template>
Expand Down
2 changes: 1 addition & 1 deletion docs/content/es/lang-switcher.md
Expand Up @@ -69,7 +69,7 @@ Asegúrese de que Vuex [esté habilitado](https://nuxtjs.org/guides/directory-st

To provide dynamic parameters translations, dispatch the `i18n/setRouteParams` mutation as early as possible when loading a page. The passed in object must contain the mappings from the locale `code` to an object with a mapping from slug name to expected slug value for given locale.

An example:
An example (replace `postId` with the appropriate route parameter):

```vue
<template>
Expand Down

0 comments on commit 16105c6

Please sign in to comment.