summary refs log tree commit diff
path: root/README
blob: d3f8d5c522c86d2086d0d30a0b8dae7dd8bfd37e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
NAME
    Dancer::Plugin::I18n - Intenationalization 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.