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

349
Views
Vue i18n including external JSON's with translations

I'm using Vue-i18n package. In every component i include a JSON file with translations, like this:

// this is a Vue template: home.vue
<i18n src="../locales/pages/home.json"></i18n>

Locally it works fine.

But i'm storing JSON files with translations on another server, so this package won't work if i try to include an external JSON directly:

<i18n src="https://example.com/translations/home.json"></i18n>

Instead, i decided to get the files on the server side (using node), however i've faced an issue when i try to deploy my app in a docker container, because an app needs to be builded with npm run build, all of the files are already bundled in JS files after build, thus i cannot replace these JSON files with my node script.

Does anyone have an idea on how to reach my goal?

over 4 years ago · Santiago Trujillo
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!