bookreader icon indicating copy to clipboard operation
bookreader copied to clipboard

Refactor ISO lang code utils functions

Open schu96 opened this issue 2 weeks ago • 1 comments

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

schu96 avatar Dec 07 '25 23:12 schu96