Skip to content

globalbrain/nuxt-i18n

 
 

Repository files navigation

Global Brain: Nuxt I18N

Test License

Nuxt module for internationalization with localized routing.

This module's intention is not to provide a full-blown solution for internationalization like @nuxtjs/i18n, but offer a lean, effective and lightweight set of tools to cover the needs of common projects without the bloat of a full-blown solution.

Install

pnpm add -D @globalbrain/nuxt-i18n

Usage

export default defineNuxtConfig({
  modules: [
    '@globalbrain/nuxt-i18n'
  ],

  i18n: {
    defaultLocale: 'ja',
    locales: ['ja', 'en']
  }
})

Contribution

We are really excited that you are interested in contributing. Before submitting your contribution though, please make sure to take a moment and read through the following guidelines.

Code style guide

Always remember to follow the "Golden Rule"…

Every line of code should appear to be written by a single person, no matter the number of contributors. — @mdo

Development

pnpm run lint

Lint files using ESLint.

pnpm run test

Run the test suite using Vitest.

License

This package is open-sourced software licensed under the MIT.

About

Minimal Nuxt module for i18n with localized routing.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 97.8%
  • JavaScript 2.2%