Skip to content

How to get back an ISO 639-1 code #50

Closed Answered by pemistahl
kensanata asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Alex, it's as simple as calling lingua.English.IsoCode639_1().

Conversely, if you want to get the language for a specific ISO code, just call lingua.GetLanguageFromIsoCode639_1(lingua.EN). While I'm thinking about it...it probably makes sense to implement lingua.EN.Language() for the next version. That would be much more elegant. Thank you for pointing me to this idea. (-:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kensanata
Comment options

Answer selected by pemistahl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #49 on September 10, 2023 18:40.