Translate::Fluent::Parser - Load fluent files and tranform them into objects
use Translate::Fluent::Parser qw(parse_file); my $resource_set = parse_file( "some_project.en.flt" ); print $resource_set->translate("some_tag" );
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.
return undef
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.
This file is part of Translate::Fluent - version, license and more general information can be found in its documentation
To install Translate::Fluent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Translate::Fluent
CPAN shell
perl -MCPAN -e shell install Translate::Fluent
For more information on module installation, please visit the detailed CPAN module installation guide.