Yancy::I18N - Internationalization (i18n) for Yancy
# 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', );
Doug Bell <firstname.lastname@example.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.