I've made a pluralization for errors count:
countErrors() > 1 ? countErrors() + " " + $tc('connectivity_status.errors_detected', 2)
: countErrors() + " " + $tc('connectivity_status.errors_detected')
My lang file looks like this (note that I have a separate file for each language: fr, eng, esp...):
// eng-US.js
export default {
// many translation before this
translation_example : "translation example"
connectivity_status: {
errors_detected: 'no network issues | network issue | network issues',
ok: 'OK'
},
}
The text is displayed like it should: no networks issues, 1 network issue, 2 network issues, but I still get errors in the console:
[vue-i18n] Value of key 'connectivity_status.errors_detected' is not a string or function
[vue-i18n] Fall back to translate the keypath 'connectivity_status.errors_detected' with 'en' locale
How can I correct these errors?