Skip to content

the message which has json path not resolve correctly #2156

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

Closed
4 tasks done
kazupon opened this issue Apr 4, 2025 · 2 comments
Closed
4 tasks done

the message which has json path not resolve correctly #2156

kazupon opened this issue Apr 4, 2025 · 2 comments
Labels
❗ p4-important Priority 4: bugs that violate documented behavior, or significantly impact perf Type: Bug Bug or Bug fixes

Comments

@kazupon
Copy link
Member

kazupon commented Apr 4, 2025

Reporting a bug?

from nuxt-i18n issue:
nuxt-modules/i18n#3511

Describe the bug
When using the following translations different combinations will break when loading them via files. It works as intended when the translations are added inline in the config.

{
  ...
  "product": "Product",
  "product.type": "Product type",
  "product.test.type": "Product test type"
}

Notice that product.type acts differently than product.test.type so it only breaks when it's two "parts" and the latter ends with type.

Expected behavior

the messages which has json path resolve correctly

Reproduction

Reproduction
https://stackblitz.com/edit/github-wp13roib-ndfalwq7?file=i18n%2Fi18n.config.ts

System Info

.

Screenshot

No response

Additional context

No response

Validations

@kazupon kazupon added Status: Review Needed Request for review comments Type: Bug Bug or Bug fixes ❗ p4-important Priority 4: bugs that violate documented behavior, or significantly impact perf and removed Status: Review Needed Request for review comments labels Apr 4, 2025
@kazupon
Copy link
Member Author

kazupon commented Apr 4, 2025

We need to fix for vue-i18n v9, v10 and v11 too

@VandreiVer
Copy link

Thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❗ p4-important Priority 4: bugs that violate documented behavior, or significantly impact perf Type: Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

2 participants