The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Yancy::I18N - Internationalization (i18n) for Yancy

VERSION

version 1.064

SYNOPSIS

    # 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)

DESCRIPTION

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!

Languages

Yancy comes with the following lexicons:

English (US)

Custom 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',
    );

SEE ALSO

Mojolicious::Plugin::I18N, Locale::Maketext

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2020 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.