nuxt i18n link id 1

nuxt i18n link id

1. 
{{ $t("view") }}
2.
{{ $t("view") }}

Here is what the above code is Doing:
1.
{{ $t(“view”) }}

This is the recommended way to create a link to a dynamic route.

The localePath() function is a helper function that is provided by the nuxt-i18n module. It takes a route object as its first argument.

The route object has two properties:

name: The name of the route.
params: The parameters that are passed to the route.

2.
{{ $t(“view”) }}

This is the alternative way to create a link to a dynamic route.

The localePath() function is a helper function that is provided by the nuxt-i18n module. It takes a string as its first argument.

The string is the path of the route.

Similar Posts