Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Twitter-CLDR-rb library
Last updated at 2:22 pm UTC on 15 December 2015
(Unicode)

https://blog.twitter.com/2012/twittercldr-improving-internationalization-support-in-ruby


TwitterCLDR has methods like this


TwitterCldr::Normalization.normalize("français") # "français"
"Alphabetize a list using regular Ruby sort:"

$> ["Art", "Wasa", "Älg", "Ved"].sort
$> ["Art", "Ved", "Wasa", "Älg"]

Alphabetize a list using TwitterCLDR’s locale-aware sort:

$> ["Art", "Wasa", "Älg", "Ved"].localize(:de).sort.to_a
$> ["Älg", "Art", "Ved", "Wasa"]


See also Twitter CLDR Ruby library

[1] IBM maintains International Components for Unicode (ICU), a library that uses the Unicode Consortium’s data to make it easier for programmers to use.