Cannot translate the value of keypath

report an error as shown in the figure

directory structure

1.index.js


2.zh.js


3.en.js


4.main.js


5.



I saw a vue-i18n-loader on the Internet, but I don"t think that"s the problem, because I referred to another project, and he didn"t match this loader at all.
the following is the version. Please take a look at it. Thank you ~

    "axios": "^0.18.0",
    "echarts": "^4.1.0",
    "iview": "^2.14.3",
    "v-charts": "^1.17.8",
    "vue": "^2.5.2",
    "vue-i18n": "^8.0.0",
    "vue-router": "^3.0.1",
    "vuex": "^3.0.1"
Sep.22,2021

found the reason. Replace message with messages!


I had a similar problem, but I found it was because I created an empty instance first,

const i18n = new VueI18n({
    locale: lang,
    messages:{}
});

then use the i18n.setLocaleMessage function to set the messages. There is a time sequence between the two, so you can't get the data at first, so just report this warning, and adjust the timing

.

sent the wrong description and did not know how to withdraw it.


the landlord has the same problem as you, and message has the same lack of s; so I tried to open another demo myself, but the original project is still not, because no problem was found, s is missing. Thank you very much, landlord.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9ce86-476da.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9ce86-476da.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?