humenda/isolang-rs

Modern Greek should be Greek

Closed this issue · 3 comments

Hello 👋

This is a really useful library and I am trying to use in a project of my own.

The use case

I want to use this library to help me rename some files, to they are compatible with with my Jellyfin installation. Currently I have subtitles folders with names in the form: Movie_English.srt and I want to rename them to Movie.en.srt. This library is ideal for this.

The problem

The library Language::from_name function expect me to give Modern Greek to get the Greek language code. But by all occasion 'Modern Greek' is just 'Greek' (I just happen to be one and notice this😄 )

Solution

If you want to avoid breaking changes for this, I suggest both "Modern Greek" and "Greek" to map to the same values, otherwise just change it. The autonym field has the value "Ελληνικά" which is means Greek so the translation is correct

There have not been any more comments on this, so I am closing this issue for the time being. If the demand should be still there, we could reopen the issue and implement this.