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
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
import Header from '@components/layout/Header.svelte'
|
||||
import Cursor from '@components/layout/Cursor.svelte'
|
||||
import LanguageSwitcher from '@components/ui/LanguageSwitcher.svelte'
|
||||
|
||||
import Home from '@views/Home.svelte'
|
||||
import About from '@views/About.svelte'
|
||||
|
|
@ -94,6 +95,7 @@
|
|||
{/each}
|
||||
</div>
|
||||
</main>
|
||||
<LanguageSwitcher />
|
||||
|
||||
<style>
|
||||
:global(#app) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue