Skip to content

Commit

Permalink
feat(lang): add module i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Dec 30, 2023
1 parent 4424647 commit 23e0380
Show file tree
Hide file tree
Showing 3 changed files with 456 additions and 94 deletions.
21 changes: 21 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,35 @@ export default defineNuxtConfig({
modules: [
'@nuxtjs/tailwindcss',
'@nuxtjs/color-mode',
'@nuxtjs/i18n',
'@vueuse/nuxt',
'nuxt-site-config',
],
site: {
title: 'Mafl',
lang: 'en',
theme: 'system',
services: [],
},
i18n: {
locales: [
{
code: 'en',
iso: 'en-US',
name: 'English',
file: 'en-US.json',
},
{
code: 'ru',
iso: 'ru-RU',
name: 'Русский',
file: 'ru-RU.json',
},
],
strategy: 'no_prefix',
langDir: 'locales',
defaultLocale: 'en',
},
tailwindcss: {
cssPath: '~/assets/style/tailwind.css',
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@antfu/eslint-config": "^1.2.1",
"@nuxt/devtools": "latest",
"@nuxtjs/color-mode": "^3.3.2",
"@nuxtjs/i18n": "^8.0.0",
"@nuxtjs/tailwindcss": "^6.10.1",
"@types/node": "^20.10.5",
"eslint": "^8.56.0",
Expand Down
Loading

0 comments on commit 23e0380

Please sign in to comment.