8 FS::Locales - Supported locales
14 my @locales = FS::Locales->locales;
18 FS::Locales provides a list of supported locales.
26 Returns a list of the available locales.
30 tie our %locales, 'Tie::IxHash',
31 'en_CA', { name => 'English', country => 'Canada', },
32 'en_US', { name => 'English', country => 'United States', },
33 'fr_CA', { name => 'French', country => 'Canada', },
34 'fr_FR', { name => 'French', country => 'France', },
35 'iw_IL', { name => 'Hebrew', country => 'Israel', rtl=>1, },
42 =item locale_info LOCALE
44 Returns a hash of information about a locale.
49 my($class, $locale) = @_;
50 %{ $locales{$locale} };
53 =item description LOCALE
55 Returns "Language (Country)" for a locale.
60 my($class, $locale) = @_;
61 $locales{$locale}->{'name'} . ' (' . $locales{$locale}->{'country'} . ')';