Skip to content
A boilerplate for rapid application development using Nuxt i18n.
Vue JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets/css
components
lang
layouts
pages
server
static
.editorconfig
.gitignore
LICENSE
README.md
now.json
nuxt.config.js
package-lock.json
package.json

README.md

Nuxt i18n Boilerplate

Minimalistic Boilerplate for Nuxt.JS applications with fully ready Nuxt i18n module.

Demo

Installation

git clone https://github.com/Wssn/nuxt-i18n-boilerplate.git
cd nuxt-i18n-boilerplate
npm install
npm run dev

Features

  • Integration with nuxt-i18n
  • Boostrap Vue
  • Search Engine Optimization
  • Well-organized separated language files
  • SEO friendly URL

Language Files

There is a lang directory in root folder. Each language has their own .json file.

nuxt.config.js

locales: [
  {
    code: 'en',
    iso: 'en-GB',
    name: 'English',
    file: 'en.json'
  },
  {
    code: 'tr',
    iso: 'tr-TR',
    name: 'Türkçe',
    file: 'tr.json'
  }
],

SEO Friendly URLs

pages/example.vue

nuxtI18n: {
  paths: {
    // add your multilanguage seo friendly urls for each lang
    en: '/example-route',
    tr: '/ornek-route'
  }
}
You can’t perform that action at this time.