Yancy::I18N - Internationalization (i18n) for Yancy
version 1.088
# XXX: Show how to set the language of Yancy # XXX: Show how to create a custom lexicon # XXX: Show examples of bracket notation (quant, numf, numerate, # sprintf, and positional parameters)
This is the internationalization module for Yancy. It uses Locale::Maketext to do the real work.
NOTE: This is a work-in-progress and not all of Yancy's text has been made available for translation. Patches welcome!
Yancy comes with the following lexicons:
To create your own lexicon, start from an existing Yancy lexicon and add your own entries, like so:
package MyApp::I18N; use Mojo::Base 'Yancy::I18N'; package MyApp::I18N::en; use Mojo::Base 'Yancy::I18N::en'; our %Lexicon = ( 'Additional entry' => 'Additional entry', );
Mojolicious::Plugin::I18N, Locale::Maketext
Doug Bell <preaction@cpan.org>
This software is copyright (c) 2021 by Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Yancy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Yancy
CPAN shell
perl -MCPAN -e shell install Yancy
For more information on module installation, please visit the detailed CPAN module installation guide.