Skip to content

Language code: exception and support of "set 1" language code of ISO 639 #55

Open
@s-celles

Description

@s-celles

Hi,

I'm trying the following

julia> using Languages
julia> Languages.from_code("eng")
Languages.English()
julia> Languages.from_code("en")
# returns nothing

It's a bit odd to return nothing but not raising an exception.

According to https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes en is a valid language code (set 1)

Supporting the whole standard should probably be considered

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions