Skip to content
CLDR::List (Perl 6)
Perl Other
  1. Perl 73.6%
  2. Other 26.4%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/CLDR
logotype
t
.travis.yml
META6.json
README.md

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.

You can’t perform that action at this time.