question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using vue-i18n with Node without Vue?

See original GitHub issue

Hi there,

I’m trying to use vue-i18n server-side to translate some email templates with a process as close as possible of what we’re doing client-side.

I got it working like this: https://runkit.com/nicooprat/vue-i18n-node. It could be fine this way but it’s sad to import Vue only to init vue-i18n…

Would it be possible to get it working without Vue and Vue.use()?

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
kazuponcommented, Apr 30, 2019

Unfortunatly, vue-i18n need to require vue.

In the future, I extract i18n common features and I have plan to provide that as the library/framework.

1reaction
nicoopratcommented, Oct 1, 2019

As long as the i18n library you use in your backend can understand the format of the translation files, there’s no problem at all I guess!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implementing i18n in Vue.js Using vue-i18n - DigitalOcean
Here's a short guide on how to implement internationalization (i18n) in your Vue.js apps using the vue-i18n plugin.
Read more >
Installation | Vue I18n
When using with a module system, you must explicitly install the vue-i18n via Vue.use() : import Vue from 'vue' import VueI18n from ...
Read more >
The Ultimate Vue Localization Guide | Phrase
In this hands-on guide, we'll use Vue I18n to internationalize a little demo app, covering everything you need to get started with Vue...
Read more >
Installation - Vue I18n - Intlify
You will have to clone directly from GitHub and build vue-i18n yourself if you want to use the latest dev build. git clone...
Read more >
Step-by-step: How to Create a Vue Multi-Language App with ...
1. Create a new Vue 3 application · 2. Install vue-i18n-next in your Vue 3 project · 3. Test the i18n configuration on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found