Skip to content

Commit

Permalink
Merge pull request #5 from La-404-Devinci/feature/i18n
Browse files Browse the repository at this point in the history
add i18n translation en & fr
  • Loading branch information
miicolas authored Oct 2, 2024
2 parents f222035 + aad3908 commit 0e87f93
Show file tree
Hide file tree
Showing 28 changed files with 1,555 additions and 284 deletions.
20 changes: 20 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"css": "src/app/[locale]/globals.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
}
}
37 changes: 37 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"HomePage": {
"title": "Hello world!",
"about": "Go to the about page"
},
"ProjectsSection": {
"title": "What we made",
"pixel-war": "Pixel War",
"hacker-journey": "Hacker Journey",
"forum-associatif": "Associatif Forum"
},
"AboutSection": {
"title": "Who we are",
"description": "404 Devinci is an association focused on web development and UI/UX design. We're also interested in emerging technologies such as AI and IoT. Our aim is to bring together students who are passionate about the digital world and create innovative projects together.",
"description-2": "We work on the creation of web sites and applications, both in-house and in collaboration with our partners. We are also involved in communication activities and organize various events related to our field."
},
"TeamSection": {
"title": "Our team",
"meet-the-team": "Meet the team",
"secretary": "Secretary ・ Fullstack Developer",
"president": "President ・ Fullstack Developer",
"treasurer": "Treasurer ・ Fullstack Developer"
},
"FaqSection": {
"title": "questions &",
"answers": "answers",
"question-1": "Who can join the 404 Devinci association?",
"answer-1": "Whether you are a beginner or an expert, if you are a student at the Léonard de Vinci University, you can join us!",
"question-2": "Do I need coding skills to join the association?",
"answer-2": "No! We recruit UX/UI designers, communication officers, and of course developers. If you are passionate about the web, you are welcome!",
"question-3": "Are there any fees to become a member of 404 Devinci?",
"answer-3": "No, membership in the association is free. Our goal is to create a group accessible to all to work on concrete projects and improve our skills.",
"question-4": "What are the benefits of joining 404 Devinci?",
"answer-4": "By joining us, you will have the opportunity to work on real projects, improve your technical skills, and meet other web development enthusiasts. You will also be able to enhance your resume with practical experiences."
}

}
41 changes: 41 additions & 0 deletions messages/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"HomePage": {
"title": "Bonjour le monde!",
"about": "Aller à la page d'à propos"
},
"ProjectsSection": {
"title": "Ce que nous avons fait",
"pixel-war": "Pixel War",
"hacker-journey": "Hacker Journey",
"forum-associatif": "Forum Associatif"
},
"AboutSection": {
"title": "Qui sommes-nous",
"description": "404 Devinci est une association indépendante et autonome qui se consacre à la création de sites web et d'applications pour les personnes à mobilité réduite. Nous sommes également intéressés par l'économie numérique et l'innovation, et nous sommes fiers de contribuer à la société en créant des projets concrets et en améliorant nos compétences techniques.",
"description-2": "Nous travaillons sur la création de sites web et d'applications, à la fois en tant que membre de l'association et en tant que contributeur externe. Nous sommes également impliqués dans des communications et organisons des événements liés à notre secteur."
},
"TeamSection": {
"title": "Notre équipe",
"meet-the-team": "Rencontrer l'équipe",
"secretary": "Secrétaire ・ Fullstack Développeur",
"president": "Président ・ Fullstack Développeur",
"treasurer": "Trésorier ・ Fullstack Développeur"
},
"FaqSection": {
"title": "questions &",
"answers": "réponses",
"question-1": "Qui peut rejoindre l'association 404 Devinci ?",
"answer-1": "Que tu sois débutant ou expert, si tu es étudiant au pôle universitaire Léonard de Vinci, tu peux nous rejoindre !",
"question-2": "Dois-je avoir des compétences en coding pour rejoindre l'association ?",
"answer-2": "Non ! Nous recrutons des designers UX/UI, des chargés de communication, et bien sûr des développeurs. Si tu es passionné par le web, tu es le bienvenu !",
"question-3": "Y a-t-il des frais pour devenir membre de la 404 Devinci ?",
"answer-3": "Non, l'adhésion à l'association est gratuite. Notre objectif est de créer un groupe accessible à tous pour travailler sur des projets concrets et améliorer nos skills.",
"question-4": "Quels sont les avantages à rejoindre la 404 Devinci ?",
"answer-4": "En nous rejoingnant, tu auras l'opportunité de travailler sur des projets concrets, d'améliorer tes compétences techniques, et de rencontrer d'autres passionnés du développement web. Tu pourras également enrichir ton CV avec des expériences pratiques."
},
"Footer": {
"copyright": "2024 © Tous droits réservés",
"legal-notices": "Mentions légales",
"social-media": "Réseaux sociaux"
}
}
8 changes: 6 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import createNextIntlPlugin from 'next-intl/plugin';

const withNextIntl = createNextIntlPlugin();

/** @type {import('next').NextConfig} */
const nextConfig = {};

export default nextConfig;
export default withNextIntl(nextConfig);
Loading

0 comments on commit 0e87f93

Please sign in to comment.