rails-i18n icon indicating copy to clipboard operation
rails-i18n copied to clipboard

Problem Counting Locales

Open digitalfrost opened this issue 3 years ago • 6 comments
trafficstars

The README lists 109 available locales. Counting the incomplete locales returned by thor locales:incomplete using #1010 returns 116 incomplete locales.

See also #577

digitalfrost avatar Aug 12 '22 10:08 digitalfrost

$ tree rails/locale
...
1 directory, 122 files

Indicating we have 122 locale.yml files

digitalfrost avatar Aug 12 '22 11:08 digitalfrost

$ ls -F rails/locale |grep -v / | wc -l
116

digitalfrost avatar Aug 14 '22 07:08 digitalfrost

Using #1012

$thor locales:count_all
116

digitalfrost avatar Aug 14 '22 07:08 digitalfrost

$tree rails/pluralization
0 directories, 151 files

digitalfrost avatar Aug 16 '22 09:08 digitalfrost

We have locales like yo (Yoruba) that have pluralization rules but no locale file.

digitalfrost avatar Aug 16 '22 09:08 digitalfrost

The orphaned pluralizations are not all the same. For example the pluralization rules specified for yo (Yoruba) and wa (Walloon) are not the same.

They however come from the same commit 392c65f on Jan 29, 2012

digitalfrost avatar Aug 16 '22 10:08 digitalfrost