Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
Nuxt I18n returning warn on pluralization

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?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!