Skip to content

Commit

Permalink
feat: add i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarogfn committed Jan 17, 2024
1 parent 5f8bb95 commit 967fd36
Show file tree
Hide file tree
Showing 5 changed files with 448 additions and 93 deletions.
9 changes: 9 additions & 0 deletions i18n/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

import pt from './languages/pt'

export default defineI18nConfig(() => ({
defaultLocale: 'en',
messages: {
pt
}
}))
3 changes: 3 additions & 0 deletions i18n/languages/pt.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
birthLibrium: 'O Nascimento do Librium.'
}
5 changes: 5 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ export default defineNuxtConfig({
id: 'UA-XXXXXXXX-X'
}
}],
["@nuxtjs/i18n", {
vueI18n: './i18n'


}],
],
nitro: {
prerender: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@eslint/eslintrc": "3.0.0",
"@eslint/js": "8.56.0",
"@nuxt/eslint-config": "0.2.0",
"@nuxtjs/i18n": "8.0.0",
"@types/eslint__eslintrc": "2.1.1",
"@typescript-eslint/eslint-plugin": "6.18.1",
"@typescript-eslint/parser": "6.18.1",
Expand Down
Loading

0 comments on commit 967fd36

Please sign in to comment.