Skip to content

marr/dancer-plugin-i18n

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME
    Dancer::Plugin::I18n - Internationalization for Dancer

SYNOPSIS
        package myapp::I18N::fr;
        use base 'myapp::I18N';
        our %Lexicon = ( hello => 'bonjour' );
        1;

        package myapp;
        use Dancer;
        use Dancer::Plugin::I18n;
        get '/' => sub { template 'index' };

        # index.tt
        hello in <% languages %> => <% l('hello') %>
        # or
        <% languages('fr') %>This is an <% l('hello') %>

DESCRIPTION
    Dancer::Plugin::I18n add Locale::Maketext to your Dancer application

METHODS
  languages
  l
AUTHOR
    franck cuny <franck@lumberjaph.net>

SEE ALSO
LICENSE
    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

About

Intenationalization support for Dancer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%