NAME

Mojolicious::Plugin::I18n - Intenationalization Plugin

SYNOPSIS

# Mojolicious
$self->plugin('i18n');
% languages 'de';
<%=l 'hello' %>

# Mojolicious::Lite
plugin 'i18n' => {namespace => 'MyApp::I18N'};
<%=l 'hello' %>

# Lexicon
package MyApp::I18N::de;
use base 'MyApp::I18N';

our %Lexicon = (hello => 'hallo');

1;

DESCRIPTION

Mojolicous::Plugin::I18n adds Locale::Maketext support to Mojolicious.

METHODS

Mojolicious::Plugin::I18n inherits all methods from Mojolicious::Plugin and implements the following new ones.

register

$plugin->register;

Register plugin hooks and helpers in Mojolicious application.

SEE ALSO

Mojolicious, Mojolicious::Guides, http://mojolicious.org.