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
Created a new translations file translations_en.json in the src/components/Timeline directory.
Added English translations for all the text currently in the Timeline component.
Modified the Timeline component to load the appropriate translations based on the user's language preference.
Replaced all hardcoded Portuguese text with references to the translations object in the Timeline component.
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.
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
translations_en.json
in thesrc/components/Timeline
directory.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:
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.