![]() ![]() It’s the locale you want to redirect your user if he tries to access a non-existing language on your website. Question 2: “The fallback locale of project localization.” You can press enter to keep the default value (en). It’s the default language of your website. Question 1: “The locale of project localization.” The following step of this tutorial is to install the Vue i18n library that we will use.Ĭome back to your terminal and enter the command below: $ vue add i18nĪfter the package installation, the CLI will prompt you with some questions to configure your Vue 3 project. Install vue-i18n-next in your Vue 3 project When your project is ready, move into it. Once you hit “Enter”, the Vue CLI will prompt you to select a preset for your new project. Note: If you don’t have the Vue CLI yet, you can install it using npm install -g our case, we will name the project: “vue-3-i18n-example-with-vue-i18n-next” ( vue create vue-3-i18n-example-with-vue-i18n-next). You can enter the vue create command to create a new project using the Vue CLI. The first thing you need to do is initialize a Vue 3 application. Once you’re ready, you can open your terminal and move it into your project folder. Note: You can skip to the next step if you already have an existing application. If you don’t want to miss other content, I highly recommend following Fl圜ode on Twitter. So, right after this guide, you will understand the basics and deep dive further into all these online resources.ĭon’t worry, we will probably certainly write about other libraries in the future. Most GitHub repositories that you will find online are using it. In this guide, we will use the Vue i18n next library because it would benefit the most readers since it’s the most used one (+650k downloads per week). You probably heard of many libraries to translate your Vue application (“vue-i18next”, “vue-simple-i18n”, etc.). Ready to create a website in different languages? □□□□ Why do we choose Vue i18n next?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |