The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Translate::Fluent::Parser - Load fluent files and tranform them into objects

SYNOPSIS

  use Translate::Fluent::Parser qw(parse_file);

  my $resource_set = parse_file( "some_project.en.flt" );

  print $resource_set->translate("some_tag" );

EXPORTS

parse_file( $filename )

parse_file takes a filename and parse it into a Translate::Fluent::ResourceSet object that can be used to translate translation tags.

See #SYNOPSIS for example.

If the file does not contain any valid resources, parse_file will return undef.

parse_string( $string )

parse_string takes a string and parses it into a Translate::Fluent::ResourceSet object.

If the string does not contain any valid resources, parse_string will return undef.

SEE MORE

This file is part of Translate::Fluent - version, license and more general information can be found in its documentation