Skip to content

Commit

Permalink
feat: implement translation
Browse files Browse the repository at this point in the history
* [deps] add i18n and  i18n-react
* delete AboutIntro
* update content
* fix footer to bottom (using calc and 100vh)
* fix forgotten text color in projects with white theme
* align social icons to navbar padding
* add translation files (locales/)
  • Loading branch information
mspronesti committed Feb 17, 2023
1 parent 2a55694 commit 3c6e0c4
Show file tree
Hide file tree
Showing 20 changed files with 383 additions and 209 deletions.
153 changes: 139 additions & 14 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@
"axios": "^0.26.1",
"bootstrap": "^5.1.3",
"gh-pages": "^3.2.3",
"i18next": "^22.4.9",
"i18next-browser-languagedetector": "^7.0.1",
"i18next-http-backend": "^2.1.1",
"react": "^17.0.2",
"react-bootstrap": "^2.2.1",
"react-dom": "^17.0.2",
"react-github-calendar": "^3.2.2",
"react-i18next": "^12.1.5",
"react-icons": "^4.3.1",
"react-parallax-tilt": "^1.7.42",
"react-pdf": "^5.7.1",
Expand Down
34 changes: 34 additions & 0 deletions public/locales/EN/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"Projects": "Projects",
"Home": "Home",
"About": "About",
"Greeting": "Hi There!",
"Im": "I'm",
"Typer1": "Machine Learning Engineer",
"Typer2": "Open-source contributor",
"Typer3": "Passionate about Science and Engineering",
"AboutHeader": "About",
"Me": "Me",
"MLE": "a passionate Machine Learning Engineer",
"IWorkAt": "working at",
"Company": "Amadeus",
"CompanyLocation": "in Nice, France",
"IHoldDegree1": "I hold a double Master of Science in",
"School1": "from Politecnico di Torino",
"And": "and",
"School2": "from EURECOM",
"Interests": "My professional interests include:",
"Languages": "Languages",
"Frameworks": "Frameworks",
"IUse": "I use",
"Tools": "Tools",
"ProjHeader": "My Recent",
"Works": "Works",
"View": "View Project",
"ProjSubtitle": "Here are a few projects I've worked on recently",
"Proj1": "Rust implementation of the diffusers API, equivalent to huggingface's diffusers. Based on the tch-rs crate, the implementation is complete enough so as to be able to run Stable Diffusion v1.5 and v2.1. Main open-source contributor.",
"Proj2": "High-performance header-only C++20 library for bayesian inference on discrete bayesian networks, supporting both CPU and GPU implementations (Cuda and OpenCL) of inference algorithms and copy-on-write (CoW) memory optimizations.",
"Proj3": "Python toolkit for quantum machine learning, developed on top of Qiskit, offers well-known supervised and unsupervised machine learning implementations for a gated quantum computer. Winner of a University award for best project.",
"Proj4": "Personal website portfolio for professional usage. Built with React, NodeJS and ❤️. Highly customizable and easy to use.",
"ThisWebsite": "This website"
}
34 changes: 34 additions & 0 deletions public/locales/IT/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"Projects": "Progetti",
"Home": "Home",
"About": "Su di Me",
"Greeting": "Ciao!",
"Im": "Mi chiamo",
"Typer1": "Machine Learning Engineer",
"Typer2": "Open-source contributor",
"Typer3": "Appassionato di Scienza ed ingegneria",
"AboutHeader": "Su di",
"Me": "Me",
"MLE": "un appassionato Machine Learning Engineer",
"IWorkAt": "che lavora per",
"Company": "Amadeus",
"CompanyLocation": "a Nizza, Francia",
"IHoldDegree1": "Ho una doppia laurea magistrale in",
"School1": "conseguita al Politecnico di Torino",
"And": "e",
"School2": "ad EURECOM",
"Interests": "I miei interessi professionali comprendono:",
"Languages": "Linguaggi",
"Frameworks": "Framework",
"IUse": "che uso",
"Tools": "Tools",
"ProjHeader": "Alcuni",
"Works": "Progetti",
"View": "Vedi Progetto",
"ProjSubtitle": "Alcuni progetti a cui ho lavorato recentemente",
"Proj1": "Implementazione in Rust dell'API dei diffusers, equivalente alla versione in python di huggingface. Basata su tch-rs, quest'implementazione consente di utilizzare Stable Diffusion v1.5 e v2.1. Io sono il principale Open-source contributor.",
"Proj2": "Libreria di inferenza bayesiana per reti bayesiane discrete scritta in C++20. Supporta implementazioni in CPU e GPU (Cuda e OpenCL) dei principali algoritmi di inferenza e del copy-on-write (CoW) per ottimizzare l'occupazione di memoria dei grafi.",
"Proj3": "Python toolkit di quantum machine learning, basato su Qiskit, questo progetto implementa alcuni algoritmi di machine e deep learning per un computer quantistico. Questo progetto è risultato vincitore di un premio come miglior progetto ad EURECOM.",
"Proj4": "Portfolio personale per uso professionale. Scritto in React, NodeJS e ❤️. Facile da utilizzare ed adattare per le proprie esigenze.",
"ThisWebsite": "Questo sito"
}
2 changes: 2 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.App {
text-align: center;
/* margin-bottom: 70px; */
min-height: calc(100vh - 60px)!important;
}

.App-logo {
Expand Down
3 changes: 2 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function App() {
return () => clearTimeout(timer);
}, []);


return (
<Router basename={process.env.PUBLIC_URL}>
<Preloader load={load} />
Expand All @@ -43,8 +44,8 @@ function App() {
{/* <Route path="/resume" element={<Resume />} /> */}
<Route path="*" element={<Navigate to="/"/>} />
</Routes>
<Footer />
</div>
<Footer />
</Router>
);
}
Expand Down
Loading

0 comments on commit 3c6e0c4

Please sign in to comment.