View on
MetaCPAN
Ruben Amortegui > Dancer2-Plugin-Locale-Meta-0.002 > Dancer2::Pluging::Locale::Meta

Download:
Dancer2-Plugin-Locale-Meta-0.002.tar.gz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source   Latest Release: Dancer2-Plugin-Locale-Meta-0.006

NAME ^

Dancer2::Pluging::Locale::Meta

DESCRIPTION ^

This plugin allow Dancer2 developers to use Locale::Meta package. This Plugin is based on Dancer2::Plugin::Locale::Wolowitz plugin.

SYNOPSIS ^

  use Dancer2;
  use Dancer2::Plugin::Locale::Meta;

  # in your routes

  get '/' => sub {
    my $greeting = loc("hello");
    template index.tt, { greeting => $greeting }
  }

  # in your template

  <% l('greeting') %>

CONFIGURATION ^

  plugins:
    Locale::Meta:
      fallback: "en"
      locale_path_directory: "i18n"
      lang_session: "lang"
syntax highlighting: