Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RecipeVerse : Add Recipe Generator with Language Translation and Localization Support #2589

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SOHAIB-code-png
Copy link

This PR adds a new feature to the Recipe Generator app, integrating language translation and localization functionality using Tolgee. Users can now generate random recipes fetched from the Spoonacular API, with the option to switch between English, French, and Spanish.

Key features:

  • Fetch a random recipe, including title, image, summary, and source URL.
  • Buttons to switch languages dynamically (English, French, and Spanish).
  • Localization support provided by Tolgee, making the UI responsive to user language preferences.
  • Improved UI with buttons for generating another recipe and adding a recipe to favorites.

The following changes are made:

  • Installed Tolgee dependencies.
  • Wrapped the app in TolgeeProvider to enable translation support.
  • Added a simple language switcher to toggle between supported languages.
  • Handled translation of key UI text elements in the Recipe component.

Screenshots:

Screenshot 2024-10-14 000219
Screenshot 2024-10-14 000256

Copy link
Contributor

@JanCizmar JanCizmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! It's a great demo! 🚀

Please remove the unused files from Tolgee official react demo and localize your app. Thee UI, you created is not localized via Tolgee. It only contains harcdoded labels.

@JanCizmar
Copy link
Contributor

Hey! Any updates to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants