Skip to content

Commit

Permalink
Merge pull request #23 from opengento/i18n
Browse files Browse the repository at this point in the history
I18n
  • Loading branch information
thomas-kl1 authored Jan 29, 2025
2 parents 1d13f9d + e2bd77a commit 04f438b
Show file tree
Hide file tree
Showing 26 changed files with 463 additions and 224 deletions.
12 changes: 12 additions & 0 deletions next-i18next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
i18n: {
defaultLocale: 'fr',
locales: ['fr', 'en'],
},
localePath:
typeof window === 'undefined'
? require('path').resolve('./public/locales')
: '/locales',

reloadOnPrerender: process.env.NODE_ENV === 'development',
}
7 changes: 6 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@

/** @type {import('next').NextConfig} */
const nextConfig = {
i18n: {
defaultLocale: 'fr',
locales: ['fr', 'en'],
localeDetection: true,
},
reactStrictMode: true,
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack']
});
return config;
},
}
}

module.exports = nextConfig;
160 changes: 156 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "NODE_OPTIONS='--inspect' next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
Expand All @@ -12,9 +12,14 @@
},
"dependencies": {
"classnames": "^2.5",
"i18next": "^24.2.2",
"i18next-browser-languagedetector": "^8.0.2",
"i18next-resources-to-backend": "^1.2.1",
"next": "^15.1",
"next-i18next": "^15.4.1",
"react": "^19.0",
"react-dom": "^19.0",
"react-i18next": "^15.4.0",
"react-icons": "^5.4",
"swiper": "^11.2.1"
},
Expand Down
8 changes: 8 additions & 0 deletions public/locales/fr/common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"linkedinUrl": "https://www.linkedin.com/company/meet-magento-france",
"youtubeUrl": "https://www.youtube.com/@MeetMagentoFrance",
"ticketingUrl": "https://www.eventbrite.fr/e/billets-meet-magento-2025-france-1124570503649",
"days": "Jours",
"hours": "Heures",
"minutes": "Minutes"
}
8 changes: 8 additions & 0 deletions public/locales/fr/hero.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"title" : "Save the date!",
"subtitle" : "Meet Magento arrive en France",
"content" : "Rejoignez la communauté Magento et Adobe Commerce pour une journée d'innovations, d'échanges et d'expertise, à ne pas manquer !",
"date": "Mardi 25 Mars 2025",
"place": "L'Étoile Business Center, Paris",
"ticket": "Je prends mon billet"
}
10 changes: 10 additions & 0 deletions public/locales/fr/place.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"data": {
"title": "L’Étoile Business Center",
"subtitle": "En plein coeur de Paris, à deux pas des Champs-Élysées",
"address": "21-25 Rue Balzac, 75008 Paris",
"description": "Le 25 mars 2025, Meet Magento France se tiendra dans un cadre d’exception : l’Étoile Business Center, à Paris. Situé à deux pas des Champs-Élysées, ce lieu prestigieux, alliant élégance et modernité, incarne la classe française. Son architecture lumineuse et ses espaces raffinés en font l’écrin idéal pour une journée riche en échanges, partages d’expériences et exploration des dernières innovations autour de Magento et Adobe Commerce.",
"label": "Préparer ma venue",
"url": ""
}
}
Loading

0 comments on commit 04f438b

Please sign in to comment.