Skip to content

ArnavK-09/multilanguage-url-shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎌 Multilanguage URL Shortener 🎌

Tolgee Demo

hero

Note

Welcome to the Multilanguage URL Shortener project! This app demonstrates the usage of Tolgee for localization in a Flutter application. With this project, you can shorten URLs and switch between multiple languages seamlessly. πŸŒβœ‚οΈ

πŸ“– About Tolgee

Tolgee is a powerful localization platform that allows you to translate your application into any language without modifying your code. It is designed for web applications but can also be used for mobile and desktop apps.

Features:

  • Easy Integration: No more searching for keys in your source code.
  • Effortless Localization: No need to edit localization files manually.
  • Simple Data Export: Easily export data for translators without hassle.

πŸš€ Getting Started

Follow these steps to set up the project locally:

Prerequisites

  1. Flutter SDK: Make sure you have Flutter installed on your machine. Install Flutter
  2. Dart SDK: Included with Flutter.
  3. A Tolgee API Key: Sign up on Tolgee to get your API key.

Initialization Steps

  1. Clone the Repository:

    terminal
    git clone https://github.com/ArnavK-09/multilanguage-url-shortner.git
    cd multilanguage-url-shortner
  2. Install Dependencies:

    terminal
    flutter pub get
  3. Set Up Environment Variables: Setup Environment variable for Tolgee API key:

    .env
    # Required: Your Tolgee API Key
    TOLGEE_API_KEY="<insert>"
    

    or

    terminal
    export TOLGEE_API_KEY="<insert>"
  4. Fetch Translations from Tolgee:

    Run the following command to import translations into your project or run the script named import_data.sh:

    terminal
    curl "https://app.tolgee.io/v2/projects/export?ak=$TOLGEE_API_KEY" --output data.zip && unzip data.zip -d i18n && rm data.zip
  5. Run the Application:

    Launch the app in your preferred environment (web or mobile):

    flutter run 

🎨 Features

  • URL Shortening: Easily shorten any URL using a simple interface.
  • Localization Support: Switch between multiple languages using Tolgee.
  • User-Friendly Design: A clean and intuitive user interface.

πŸ“¦ Built With

  • Flutter: The UI toolkit for building natively compiled applications.
  • Tolgee: For localization and translation management.

If you find this project helpful, please give it a ⭐ on GitHub!