docs icon indicating copy to clipboard operation
docs copied to clipboard

client-generator docs for vuetify and vue-i18n

Open frost-byte opened this issue 4 years ago • 1 comments

The section in the vuetify client-generator documentation for using vue-i18n is slightly confusing. The part that includes instructions for enabling i18n has a comment indicating that the file to change is // src/plugins/vuetify.js, when it should in fact be src/i18n.js, which I believe is generated when you install vue-i18n. (at least using vue-cli)

Another problem that I'm running into is some of the generated localizations are showing warnings in the console:

[vue-i18n] Value of key 'Reset' is not a string or function !
[vue-i18n] Cannot translate the value of keypath 'Reset'. Use the value of keypath as default.
[vue-i18n] Cannot translate the value of keypath 'Are you sure you want to delete this item?'. Use the value of keypath as default.

The same warnings also appear for the following entries: Filter, Filters, Loading..., Delete, and Cancel.

A separate issue, if I did not add vue-i18n I would get console errors about $t not existing from my components.

client-generator/vuetify docs

frost-byte avatar Feb 08 '21 21:02 frost-byte

I also faced this problem, I decided like this - created the src/i18n file.js and put everything there that is specified in the documentation, after that, all the errors disappeared from the console and the application started working... I haven't reached the stage of making changes yet

DimNS avatar Aug 12 '21 14:08 DimNS