bookreader
bookreader copied to clipboard
Refactor ISO lang code utils functions
Refactored some util functionality using the feedback from @cdrini https://github.com/internetarchive/bookreader/pull/1432#discussion_r2352863213
findLanguage is a function that returns a Code object when an input language is matched by its name, native name, or from different iso639-1 abbreviations. This Code object can then be used to find the specific language name field via toISO6391 or toNativeName