feat(i18n): add five locales and a header language switcher
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 58s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 6s
PR Check / AI code review (opencode) (pull_request) Successful in 42s
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 58s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 6s
PR Check / AI code review (opencode) (pull_request) Successful in 42s
Locale files in i18n/locales for en, de, es, it and pl; English stays at / and the others are prefixed. One flag dropdown after the GitHub link on desktop, logo plus the language button on phones. Nav, quick links and footer strings go through $t, and the footer line drops "self-healing on purpose".
This commit is contained in:
1 parent
db04d441c9
commit
93ab0c0d79
14 files changed
+1423
-66
No files matched your search
+11
-1
@@ -2,8 +2,18 @@
|
||||
export default defineNuxtConfig({
|
||||
compatibilityDate: '2025-07-15',
|
||||
devtools: { enabled: true },
|
||||
modules: ['@nuxt/eslint', '@nuxtjs/tailwindcss'],
|
||||
modules: ['@nuxt/eslint', '@nuxtjs/tailwindcss', '@nuxtjs/i18n'],
|
||||
tailwindcss: {
|
||||
cssPath: '~/assets/css/main.css'
|
||||
},
|
||||
i18n: {
|
||||
defaultLocale: 'en',
|
||||
locales: [
|
||||
{ code: 'en', language: 'en', name: 'English', file: 'en.json' },
|
||||
{ code: 'de', language: 'de', name: 'Deutsch', file: 'de.json' },
|
||||
{ code: 'es', language: 'es', name: 'Español', file: 'es.json' },
|
||||
{ code: 'it', language: 'it', name: 'Italiano', file: 'it.json' },
|
||||
{ code: 'pl', language: 'pl', name: 'Polski', file: 'pl.json' }
|
||||
]
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user