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

Description
Module versions
- Vue CLI: @vue/cli 4.3.1
vue-cli-plugin-i18n: 2.0.1
- vue version: 2.6.11
To Reproduce
Steps to reproduce the behavior:
- Create new vue application with vue-cli
- Add i18n with vue-cli command
vue add i18n
- For all steps due the installation press Enter (en language)
- Try to use translation in any component by using $t('message')
- Note the issue that it shows a key only without translation
Expected behavior
It should show a translation from locales/en.json file
Additional context
I fixed this bug by removing .default in loadLocaleMessages function
So now I have:
messages[locale] = locales(key) instead of messages[locale] = locales(key).default
Because after testing I've assume that it returns undefined with .default