19 Dec 2021 02:26:57 UTC
- Distribution: Yancy
- Module version: 1.088
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (17)
- Testers (48 / 0 / 2)
- KwaliteeBus factor: 1
- 77.17% Coverage
- License: perl_5
- Perl: v5.16.0
- Activity24 month
- Download (1.34MB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:17 non-PAUSE usersPREACTION 💯 Doug Bell
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 <email@example.com>
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.