NAME

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

SYNOPSIS

  use Locale::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 Locale::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 Locale::Fluent::ResourceSet object.

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

SEE MORE

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