gettext_parser 0.2.0 copy "gettext_parser: ^0.2.0" to clipboard
gettext_parser: ^0.2.0 copied to clipboard

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

example/README.md

Parse Mo Files: #

import 'package:gettext_parser/gettext_parser.dart' as gettextParser;

Map translateTable = gettextParser.mo.parse(
    file.readAsBytesSync(),
);

// with custom encoding
Map translateTable = gettextParser.mo.parse(
    file.readAsBytesSync(),
    encoding: latin1,
);

Parse Po Files: #

import 'package:gettext_parser/gettext_parser.dart' as gettextParser;

Map translateTable = gettextParser.mo.parse(
    file.readAsStringSync()
);

// with custom encoding
Map translateTable = gettextParser.mo.parseRaw(
    file.readAsBytesSync(),
    encoding: latin1,
);
4
likes
140
points
10k
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on gettext_parser