@globalbrain/nuxt-i18n
v1.3.0
Published
Minimal module for i18n with locale auto-imports & localized routing
Downloads
35
Readme
Global Brain: Nuxt I18N
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.