Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 393 Bytes

parse-file.md

File metadata and controls

20 lines (14 loc) · 393 Bytes

Parse a PortableObject file

Create a parser

Create a parser:

var parser = new MGR.PortableObject.Parsing.PortableObjectParser();

Parse a file

You can parse a .po file by passing a TextReader to the parser.

TextReader textReader = ...;
CultureInfo cultureOfThePOFile = ...;
var catalog = await parser.ParseAsync(textReader, cultureOfThePOFile);