Locale::Fluent::ResourceSet - a set of translation resources
my $resource_set = Locale::Fluent->parse_file( "filename.flt" ); my $variables = {}; print $resource_set->translate('some-string', $variables );
Locale::Fluent::ResourceSet groups multiple translation resources, often from a single file, and allow you to get translations from them, even when they need other resources in the resource set.
Locale::Fluent::ResourceSet
add_resource can be used to add one resource to an existing ResourceSet.
add_resource
while this can be used externally, it is intended for internal use.
Translate a message.
my $text = $resource_set->translate( 'some-message-id', $variables );
Returns a Term object with the id $term_id. This can be useful, but is intended for internal use.
Returns a Message object with the id $message_id. This can be useful, but is intended for internal use.
This file is part of Locale::Fluent - version, license and more general information can be found in its documentation.
To install Locale::Fluent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::Fluent
CPAN shell
perl -MCPAN -e shell install Locale::Fluent
For more information on module installation, please visit the detailed CPAN module installation guide.