Feat: intégration multilingue FR/EN (i18n)
All checks were successful
Deploy / Deploy to Production (push) Successful in 18s
All checks were successful
Deploy / Deploy to Production (push) Successful in 18s
- Ajout de src/i18n/index.js : dictionnaire centralisé + fonction t(key, vars) - Ajout de LanguageSwitcher.svelte : toggle FR/EN avec persistance localStorage - Router : normalizePath strip /en/, apiPrefix() pour les fetches, détection langue (URL > localStorage > navigator) - Tous les composants (Header, Menu, Footer, Article, Blog, Play) migrent vers t() depuis @i18n - Blog : navigation interne (fetch, history, getSlugFromUrl) locale-aware Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3bd410cc02
commit
517143fe60
11 changed files with 162 additions and 59 deletions
|
|
@ -43,7 +43,8 @@ export default defineConfig({
|
|||
'@state': path.resolve(__dirname, 'src/state'),
|
||||
'@router': path.resolve(__dirname, 'src/router'),
|
||||
'@utils': path.resolve(__dirname, 'src/utils'),
|
||||
'@composables': path.resolve(__dirname, 'src/composables')
|
||||
'@composables': path.resolve(__dirname, 'src/composables'),
|
||||
'@i18n': path.resolve(__dirname, 'src/i18n')
|
||||
}
|
||||
},
|
||||
server: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue