Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n support bug #77

Closed
xxldm opened this issue Mar 4, 2023 · 4 comments
Closed

i18n support bug #77

xxldm opened this issue Mar 4, 2023 · 4 comments

Comments

@xxldm
Copy link

xxldm commented Mar 4, 2023

环境

strategy: "prefix"
"@nuxtjs/i18n": "8.0.0-beta.10"
"nuxt-typed-router": "^3.0.3"

如果语言代码包含-,会导致hasi18nSibling函数的正则表达式报错。
If the language code contains -, it will cause the regular expression of the hasi18nSibling function to report an error.
Y(JTRNONRY410L81OBQF{YE
%WWJDHPQO}A_VE%`K)EV(KE
并且正则表达式中出现了两个语言代码。这是它们的顺序。
And two language codes appear in the regular expression. Here is their order.
AM}EB_EMKR7GY{C0%D799IO

该正则表达式的匹配结果也许会导致问题?
Maybe the result of this regex match is causing the problem?
image

@victorgarciaesgi
Copy link
Owner

Thanks for the report!
Yeah I think my regex is bad, I will see how to support xx-XX locales codes! 😁

@victorgarciaesgi
Copy link
Owner

Fixed in 3.0.4 !

@victorgarciaesgi
Copy link
Owner

Not completly fixed sorry

@victorgarciaesgi
Copy link
Owner

Now fixed on 3.0.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants