Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/patch/cldr-list-pm6

CLDR::List (Perl 6)
https://github.com/patch/cldr-list-pm6

cldr i18n perl6 unicode

Last synced: about 1 month ago
JSON representation

CLDR::List (Perl 6)

Awesome Lists containing this project

README

        

![Perl CLDR](https://www.gravatar.com/avatar/656f15a25eff4437f5a82e7c929f41dd?s=96)

# NAME

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

# SYNOPSIS

use CLDR::List;

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

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

- [List Patterns in UTS \#35: Unicode
LDML](http://www.unicode.org/reports/tr35/tr35-general.html\#ListPatterns)
- [Perl Advent Calendar:
CLDR TL;DR](http://perladvent.org/2014/2014-12-23.html)
- [Unicode beyond just characters: Localization with the
CLDR](http://patch.codes/talks/localization-with-the-unicode-cldr/) (video and
slides)

# AUTHOR

Nova Patch

# 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.