Skip to content

the message which has json path not resolve correctly #2156

@kazupon

Description

@kazupon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugBug or Bug fixes❗ p4-importantPriority 4: bugs that violate documented behavior, or significantly impact perf

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions