Skip to content

raku-community-modules/CLDR-List

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Actions Status Actions Status Actions Status

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、2、3和4

DESCRIPTION

Localized list formatters using the Unicode CLDR.

Attributes

  • locale

Methods

  • format

SEE ALSO

AUTHOR

Nova Patch

COPYRIGHT AND LICENSE

Copyright 2013 – 2017 Nova Patch

Copyright 2024 Raku Community

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

Packages

No packages published

Languages

  • Raku 100.0%