Skip to content
This repository was archived by the owner on Apr 22, 2024. It is now read-only.

Default Locale Messages #191

Open
Open
@codetheorist

Description

@codetheorist

Module versions:

  • Vue CLI: 4.x
  • vue-cli-plugin-i18n: 2.x

To Reproduce
Steps to reproduce the behavior:

  1. Create e new Vue app using the CLI
  2. Install the Vue I18n plugin
  3. Enable SFC I18n
  4. View i18n report to see warnings about missing & unused i18n messages
  5. View browser console to see warning about missing i18n message

Expected behavior
The installation creates a default file in the locale directory for the default locale. A component is also created, with an i18n block, with a translated string and a call to $t within the template to show this translated string.

All translated string keys should match however, the key created in the default locale file is different to that in the i18n block and the template section.

Screenshots
en json - app - Visual Studio Code 19_04_2021 15_03_55

Additional context
As the key/value is in the SFC i18n block, then the component shows the string correctly however, there are still warnings produced due to the mismatch in data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions