stellar / soroban-example-dapp

End-to-End Example Soroban Dapp
Apache License 2.0
1.03k stars 829 forks source link

LambdaHackWeek: Add Multi-Language Support #156

Open Julian-dev28 opened 5 days ago

Julian-dev28 commented 5 days ago

Please add PRs to the update-P21 branch

Description: Implement support for multiple languages in the Soroban Example DApp to enhance accessibility for users from different linguistic backgrounds.

Tasks:

  1. Identify Key Areas for Translation:

    • Review the Dapp to identify all user-facing text.
    • Create a list of strings that need translation.
  2. Choose a Library for Language Support:

    • Research and select a library (e.g., i18next, react-intl) for implementing multi-language support.
    • Integrate the chosen library into the project.
  3. Add Translations for at Least Two Languages:

    • Create translation files for the selected languages (e.g., English and Spanish).
    • Populate the files with the translated strings.
    • Ensure context-appropriate translations.
  4. Implement Language Switcher:

    • Add a language switcher component to the UI.
    • Ensure that the switcher updates the displayed language in real-time.
  5. Test Multi-Language Support:

    • Test the Dapp with different language settings.
    • Ensure that all text is properly translated and displayed.
    • Verify that switching languages does not break the UI.

Expected Outcome:

Why This Is Important: Adding multi-language support will make the Soroban Example Dapp accessible to a broader audience, enhancing user experience and inclusivity.