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

outdated

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
0
pub points
92%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on gettext_parser