FLUTTER ECOSYSTEM

gettext_parser

Platform agnostic lib to parse and compile gettext po and mo files with dart

Latest version
0.2.0
30-day downloads
40.3K
Likes
4
Pub points
130

Package Overview

Selection guidance generated from public package information. For reference only.

Overview

A platform-agnostic Dart library for parsing and compiling gettext .po and .mo files, enabling robust localization and internationalization in Flutter and other Dart applications. It supports reading translation catalogs, extracting messages, and generating compiled binary .mo files. The package is ideal for developers managing multilingual content across Android, iOS, Linux, macOS, Web, and Windows platforms. With minimal dependencies and straightforward APIs, it integrates seamlessly into existing workflows. It's particularly useful for projects requiring precise control over translation file handling without relying on external tools.

Use cases
  • Parsing .po files for translation extraction
  • Compiling .po files into .mo binaries
  • Integrating with Flutter apps for multi-language support
  • Managing translations in CI/CD pipelines
  • Supporting desktop and web localization
Key features
  • Supports both .po and .mo file formats
  • Cross-platform compatibility
  • Simple API for parsing and compiling
  • No external dependencies
  • Efficient message extraction and encoding
Suitable for
  • Flutter developers needing i18n
  • Teams using gettext for translations
  • Projects targeting multiple platforms
  • Build automation involving translation files
  • Developers avoiding runtime translation libraries
Considerations
  • Requires manual handling of translation loading
  • Not a full i18n framework
  • Limited to file parsing/compilation
  • No built-in fallback or locale switching
  • Best used alongside a custom i18n layer
Supported platformsAndroidiOSLinuxmacOSWebWindows

Install package

flutter pub add gettext_parser

Categories

Source repository

Related projects

Rankings