generaltranslation 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/codes/codes.js +1 -0
- package/package.json +1 -1
package/codes/codes.js
CHANGED
|
@@ -11,6 +11,7 @@ import LanguageToCodeTriletter from './639-3/LanguageToCodeTriletter.js'
|
|
|
11
11
|
|
|
12
12
|
// Returns the name of a language from an ISO 639 code or an array of codes
|
|
13
13
|
const _mapCodeToLanguage = code => {
|
|
14
|
+
code = code?.toLowerCase();
|
|
14
15
|
if (code?.length === 2) {
|
|
15
16
|
return CodeToLanguage[code]
|
|
16
17
|
}
|