innocenat / kindle-epub-fix

A simple Javascript website to fix common EPUB problem for Amazon's Send to Kindle.
https://kindle-epub-fix.netlify.app/
The Unlicense
322 stars 49 forks source link

Language tag recognition is case sensitive #8

Closed njjc closed 1 year ago

njjc commented 1 year ago

En detected as invalid language tag. Language tag recognition should be case insensitive; EN, En, eN, and enshould all be recognized as English. Thanks!

njjc commented 1 year ago

It looks like adding .toLowerCase() in the simplify_language() method should fix the problem.