https://github.com/perldancer/dancer-plugin-i18n
Internationalization support for Dancer
https://github.com/perldancer/dancer-plugin-i18n
Last synced: 4 months ago
JSON representation
Internationalization support for Dancer
- Host: GitHub
- URL: https://github.com/perldancer/dancer-plugin-i18n
- Owner: PerlDancer
- Created: 2010-10-08T15:15:41.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-02-18T23:01:34.000Z (over 15 years ago)
- Last Synced: 2025-06-12T01:13:27.999Z (about 1 year ago)
- Language: Perl
- Homepage:
- Size: 222 KB
- Stars: 3
- Watchers: 9
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
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
SEE ALSO
LICENSE
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.