rsmelo92 / portfolio-old

Access
https://rsmelo92.github.io/portfolio/
3 stars 0 forks source link

Add Timeline translation to English #36

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR adds support for English translations in the Timeline component of the portfolio. Currently, the component has hardcoded Portuguese text, which is not ideal for internationalization. To address this, the PR introduces a simple i18n system that externalizes the text into a separate translations file. The Timeline component is modified to load the appropriate translations based on the user's language preference.

Summary of Changes

This PR provides a foundation for adding more languages in the future and improves the internationalization support of the portfolio.

Fixes #34.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-timeline-translation

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.

rsmelo92 commented 1 year ago

translate the full object to english, you just translated the first object

rsmelo92 commented 1 year ago

Now add the correct translations to the src/components/Timeline/translations_en.json file

rsmelo92 commented 1 year ago

revert last commit