Perl Other
Switch branches/tags
Nothing to show
Latest commit b917ee5 Apr 25, 2017 @patch committed on GitHub Merge pull request #4 from zoffixznet/patch-1
Use modern META filename
Permalink
Failed to load latest commit information.
lib/CLDR
logotype add logos Nov 13, 2013
t add cldr data and use it Nov 2, 2013
.travis.yml Add Travis-CI configuration Oct 26, 2016
META6.json Use modern META filename Apr 25, 2017
README.md update links Aug 27, 2015

README.md

Perl CLDR

NAME

CLDR::List - Localized list formatters using the Unicode CLDR

SYNOPSIS

use CLDR::List;

my $list  = CLDR::List.new(locale => 'en');
my @fruit = <apples oranges bananas>;

say $list.format(@fruit);      # apples, oranges, and bananas

$list.locale = 'en-GB';        # British English
say $list.format(@fruit);      # apples, oranges and bananas

$list.locale = 'zh-Hant';      # Traditional Chinese
say $list.format('1'..'4');  # 1、2、3和4

DESCRIPTION

Localized list formatters using the Unicode CLDR.

Attributes

  • locale

Methods

  • format

SEE ALSO

AUTHOR

Nova Patch patch@cpan.org

COPYRIGHT AND LICENSE

© 2013–2015 Nova Patch

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