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.
Files changed (2) hide show
  1. package/codes/codes.js +1 -0
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generaltranslation",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A language toolkit for AI developers",
5
5
  "main": "index.js",
6
6
  "type": "module",