nuxt-modules/i18n

How to use localePath() with route params?

开放

#3,004 创建于 2024年6月29日

 (11 条评论) (4 个反应) (0 位负责人)TypeScript (532 个派生)github user discovery
good first issuescope: docs

仓库指标

星标
 (2,074 个星标)
PR 合并指标
 (平均合并 6天 10小时) (30 天内合并 74 个 PR)

描述

Unfortunately the docs doesnt show how to use localePath() with route params. E.g.:

/products/[id]

How to do link to such a page? I tried localePath('products/' + id) with no success.

EDIT: See my answer below for full explanation

贡献者指南