-
-
Notifications
You must be signed in to change notification settings - Fork 377
Closed
Labels
Type: BugBug or Bug fixesBug or Bug fixes❗ p4-importantPriority 4: bugs that violate documented behavior, or significantly impact perfPriority 4: bugs that violate documented behavior, or significantly impact perf
Description
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
- Read the Contributing Guidelines
- Read the Documentation
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussions
mathiasrando
Metadata
Metadata
Assignees
Labels
Type: BugBug or Bug fixesBug or Bug fixes❗ p4-importantPriority 4: bugs that violate documented behavior, or significantly impact perfPriority 4: bugs that violate documented behavior, or significantly impact perf