Translate::Fluent::ResourceSet - a set of translation resources
my $resource_set = Translate::Fluent->parse_file( "filename.flt" ); my $variables = {}; print $resource_set->translate('some-string', $variables );
Translate::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.
Translate::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 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.