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

outdated

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
93%
popularity

Publisher

unverified uploader

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