Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation support (or get access to Vue configuration) #29

Closed
VincentLoy opened this issue Dec 1, 2016 · 14 comments
Closed

Translation support (or get access to Vue configuration) #29

VincentLoy opened this issue Dec 1, 2016 · 14 comments

Comments

@VincentLoy
Copy link

VincentLoy commented Dec 1, 2016

Hi, We are building our new app using nuxt as an Express.js middleware. Our app must be translated in some languages.

We are looking to use i18next using the i18next vuejs build.
As you can see, to use it, we need to make some Vue configuration.

Vue.use(VueParams);
Vue.use(VueI18Next);
Vue.params.i18nextLanguage = "en";
i18next.init({ lng: Vue.params.i18nextLanguage, ... });
// ...

Don't know if there is a way to add custom Vue configuration by using Nuxt ?

Many thanks :)

This question is available on Nuxt.js community (#c23)
@alexchopin
Copy link
Member

Hi, thanks to use Nuxt with your team.

You can add it with the plugins option in nuxt.config.js file.
You can see an example here : https://github.com/nuxt/nuxt.js/tree/master/examples/plugins-vendor.

Thanks

@Atinux Atinux added the question label Dec 1, 2016
@Atinux Atinux closed this as completed Dec 1, 2016
@VincentLoy
Copy link
Author

Hi @alexchopin, thanks a lot, I should see it without opening an issue, my bad :)

@alexchopin
Copy link
Member

No worries, the website should be ready soon for a complete documentation.

@Atinux
Copy link
Member

Atinux commented Dec 1, 2016

@VincentLoy you can take a look at this example also, it might help you as well: https://hyperdev.com/#!/project/nuxt-element-ui

@VincentLoy
Copy link
Author

Ok I'll check it out.

Can't wait for the release 1.0.0 with the documentation 📦
Keep up the good work !
Thanks again.

@Xowap
Copy link

Xowap commented Dec 2, 2016

@VincentLoy and myself are trying out Nuxt in a smaller project before rolling it into bigger things if we can find a good workflow with it.

We'd be happy to provide feedback on the docs and on usage if you'd like.

@Atinux
Copy link
Member

Atinux commented Dec 2, 2016

@VincentLoy @Xowap I would you guys to give me your thoughts on the documentation. Actually some of it is available on https://nuxtjs.org

We are making an e-commerce website with my brother with Nuxt.js, I think it's a big enough project to show that Nuxt.js is reliable for big project.

I you have any question during your project with Nuxt.js, feel free to create an issue :)

@Atinux
Copy link
Member

Atinux commented Dec 2, 2016

BTW, if you guys are going to the DotJS this Monday or at the VueJs Paris Meetup this weekend, we could meet there and talk about Nuxt.js ;)

@Xowap
Copy link

Xowap commented Dec 2, 2016

Nope can't get there unfortunately. I'm reaaally sad. Though we could grab a beer at some point if you're Paris-based.

Good to see the doc online! That's kind of new? I recall checking that domain about this morning and not seeing anything.

@Atinux
Copy link
Member

Atinux commented Dec 2, 2016

We just published it few hours ago. I am living in Barcelona but come pretty often to Paris, we will have a moment to catch up and grab a beer!

@VincentLoy
Copy link
Author

That sound great !! Very happy to see the documentation online :)

@LouiseStroeh
Copy link

Hi,
I need to set some custom merge strategies (Vue.config.optionMergeStrategies), so I am curious if it is possible to access the Vue config when using nuxt?

@Atinux
Copy link
Member

Atinux commented Mar 14, 2017

@LouiseStroeh simply import Vue from 'vue' in a plugin.

@lock
Copy link

lock bot commented Nov 5, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 5, 2018
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants