router.js中在title里设置多语言字段不生效的问题
Open
- Dominant language
- Vue
- Stars
- 16.3k
- Forks
- 4.7k
- PR merge metrics
- No merged PRs in 30d
Description
文档的例子是meta:{title:‘{{more}}’},但是这样写路由中切换语言不会生效。我看了util.js中是对meta.title进行typeof为function的检测,经测试发现,项目中的多语言例子:将单引号‘’改为上点``,设置多语言字段即可生效
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by comparing the documentation example using meta.title with the handling in router.js and the typeof check in util.js. Reproduce a language switch with the documented quote style and with backticks; done means the documented multilingual title works when switching languages, or the documentation clearly reflects the supported syntax.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, internationalization
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100