DEV Community

Sanket Shinde
Sanket Shinde

Posted on

Random Recipe Generator with Tolgee

Image description

Introduction

I'm thrilled to introduce my project, the Random Recipe Generator, which showcases the power of localization through Tolgee. This application not only allows users to explore a variety of recipes but also ensures that it is accessible to a global audience by supporting multiple languages.

Why Tolgee

Tolgee is an open-source localization and internationalization library designed to simplify the process of translating applications. It provides a user-friendly interface for managing translations, allowing developers to focus on building features rather than worrying about language support.

Overview

  1. User Input: Users can enter either a dish name or ingredients into a search field.
  2. Recipe Generation: Upon submission, the app utilizes an API (such as Gemini API) to generate recipes based on the provided input. The backend processes the input and fetches relevant recipes.
  3. Display Results: The fetched recipes are displayed as cards, showcasing the recipe name and a preview of ingredients. Users can click on these cards for more detailed information, including full ingredients, instructions, and tips.
  4. Localization: The app is equipped with Tolgee, which facilitates localization and internationalization. Users can switch languages, and the app dynamically updates the interface to reflect the selected language.
  5. Responsive Design
  6. Interactivity: Users can interact with the recipes by viewing details, and they have the option to delete any recipes they no longer wish to keep.

Feel free to explore Tolgee for your projects and reach out if you have any questions!

Top comments (1)

Collapse
 
marketa_c profile image
Marketa Cizmar

Looks neat! Thanks a lot for your Hacktoberfest contribution, Sanket :)