I’m wondering there’s any built-in list or gem that has the list of
language
codes/country names/language names (native/foreign, either’s good) in
it?
Something like a list like this:
I could scrape it from the page and coerce it into a tneable format, but
I
don’t want to reinvent the wheel.
I’m wondering there’s any built-in list or gem that has the list of
language
codes/country names/language names (native/foreign, either’s good) in
it?
Something like a list like this:
The locale module looks great! It seems like a pretty comprehensive
interface to what you need, but if you happen to need something in one
file, and don’t need predicates and such, the Linguistics gem also has
both the iso639-1 and iso639-2 codes in a module: