Dynamic language loading with flatJson does not work for deeply linked messages #1595
Closed
4 tasks done
Labels
good first issue
Good for newcomers
🔨 p3-minor-bug
Priority 3: a bug in an edge case that only affects very specific usage
Status: PR Welcome
Welcome to Pull Request
Status: Review Needed
Request for review comments
Type: Bug
Bug or Bug fixes
Reporting a bug?
When using lazy language loading with
flatJson: true
, and setting messages withonly the top level linked messages are working correctly.
results in
Expected behavior
Nested objects also can be referred in linked message.
should become
Reproduction
Following the lazy loading guide, but having
flatJson: true
the "@:nested.key" links stop working while "@:simple" works.https://stackblitz.com/edit/vitejs-vite-wymdb6?file=src%2Fmain.ts
System Info
Screenshot
No response
Additional context
Possibly bit related PR: #1549
As a workaround, I am converting flat JSON manually into nested one before calling
setLocaleMessage
but it would be best to reuse the exactly same conversion logic as in vue-i18n.Validations
The text was updated successfully, but these errors were encountered: