innocenat / kindle-epub-fix

A simple Javascript website to fix common EPUB problem for Amazon's Send to Kindle.

Home Page:https://kindle-epub-fix.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Language tag recognition is case sensitive

njjc opened this issue · comments

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

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