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.
Follow these steps to set up the project locally:
- Flutter SDK: Make sure you have Flutter installed on your machine. Install Flutter
- Dart SDK: Included with Flutter.
- A Tolgee API Key: Sign up on Tolgee to get your API key.
-
Clone the Repository:
git clone https://github.com/ArnavK-09/multilanguage-url-shortner.git cd multilanguage-url-shortner
-
Install Dependencies:
flutter pub get
-
Set Up Environment Variables: Setup Environment variable for Tolgee API key:
# Required: Your Tolgee API Key TOLGEE_API_KEY="<insert>"
or
export TOLGEE_API_KEY="<insert>"
-
Fetch Translations from Tolgee:
Run the following command to import translations into your project or run the script named
import_data.sh
:curl "https://app.tolgee.io/v2/projects/export?ak=$TOLGEE_API_KEY" --output data.zip && unzip data.zip -d i18n && rm data.zip
-
Run the Application:
Launch the app in your preferred environment (web or mobile):
flutter run
- 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.
- 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!