zeba_academy_localization 1.0.0 copy "zeba_academy_localization: ^1.0.0" to clipboard
zeba_academy_localization: ^1.0.0 copied to clipboard

Smart offline localization and accessibility Flutter package

Zeba Academy Smart Localization #

šŸš€ Zeba Academy Smart Localization is a lightweight Flutter package that provides automatic locale detection, offline translation, voice input, text-to-speech, accessibility helpers, and dynamic font scaling — all in one simple toolkit.

This package is designed to help Flutter developers build accessible and multilingual applications quickly without complex configuration or heavy dependencies.


✨ Features #

šŸŒ Automatic Locale Detection Detect the user's device language and adapt your app content accordingly.

šŸ”Š Text-to-Speech (TTS) Convert translated text into speech with multi-language support.

šŸŽ¤ Voice Input Forms Capture voice input and convert speech into text easily.

🌐 Offline Translation System Translate predefined phrases without relying on external APIs.

šŸ”¤ Dynamic Font Scaling Automatically adjust text size based on user accessibility preferences.

šŸŽØ Accessibility & Theme Helpers Detect contrast and improve readability automatically.


šŸ“¦ Installation #

Add this package to your pubspec.yaml:

dependencies:
  zeba_academy_localization: ^1.0.0

Then run:

flutter pub get

šŸš€ Quick Start #

Import the package:

import 'package:zeba_academy_localization/zeba_academy_localization.dart';

šŸŒ Detect Device Locale #

Locale locale = LocaleHelper.getDeviceLocale(context);

print(locale.languageCode);

🌐 Offline Translation #

String translated = OfflineTranslation.translate(
  "Hello",
  locale,
);

print(translated);

šŸ”Š Text-to-Speech #

final tts = TTSHelper();

await tts.speak(
  "Hello World",
  languageCode: "en",
);

šŸŽ¤ Voice Input #

final voice = VoiceInputHelper();

await voice.init();

String? text = await voice.listen();

print(text);

šŸ”¤ Dynamic Font Scaling #

Text(
  "Hello",
  style: TextStyle(
    fontSize: FontHelper.getScaledFontSize(context, 18),
  ),
)

šŸŽØ Accessibility Helper #

bool isDark = ThemeHelper.isDarkColor(Colors.blue);

šŸ“± Example #

The package includes a fully working example app demonstrating:

  • Voice input
  • Translation
  • Text-to-speech
  • Locale detection
  • Dynamic font scaling

Run the example:

cd example
flutter run

šŸ“ø Screenshots #

Add screenshots inside:

/screenshots/demo1.png
/screenshots/demo2.png

Example preview:

Voice Input Translation
Screenshot Screenshot

🧩 Use Cases #

This package is perfect for:

āœ” Multilingual apps āœ” Accessibility-focused apps āœ” Educational apps āœ” Voice-enabled applications āœ” Offline-friendly applications


šŸ¤ Contributing #

Contributions are welcome!

If you'd like to improve this package:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

šŸ“„ License #

This project is licensed under the GNU General Public License v3.0.


šŸ‘Øā€šŸ’» About Me #

✨ I’m Sufyan bin Uzayr, an open-source developer passionate about building and sharing meaningful projects. You can learn more about me and my work at sufyanism.com or connect with me on Linkedin


šŸš€ Zeba Academy #

Your all-in-one no-bloat hub! #

šŸš€ Explore cutting-edge resources in coding, tech, and development at zeba.academy and code.zeba.academy. Empower yourself with practical skills through curated directives, real-world projects, and hands-on experience. Level up your tech game today! šŸ’»āœØ

Zeba Academy is a learning platform dedicated to coding, technology, and development.

āž” Visit our main site: https://zeba.academy āž” Explore hands-on courses and resources at: https://code.zeba.academy āž” Check out our YouTube for more tutorials: https://www.youtube.com/@zeba.academy āž” Follow us on Instagram: https://www.instagram.com/zeba.academy/


⭐ If you like this package, please give it a star on GitHub and share it with other developers!

Thank you for visiting!

0
likes
140
points
98
downloads
screenshot

Documentation

API reference

Publisher

verified publisherzeba.academy

Weekly Downloads

Smart offline localization and accessibility Flutter package

Homepage

License

GPL-3.0 (license)

Dependencies

flutter, flutter_localizations, flutter_tts, intl, speech_to_text

More

Packages that depend on zeba_academy_localization