generaltranslation 2.0.68 → 2.0.69

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ var libraryDefaultLanguage_1 = __importDefault(require("../settings/libraryDefau
16
16
  var _isValidLanguageCode = function (code) {
17
17
  try {
18
18
  var displayNames = new Intl.DisplayNames([libraryDefaultLanguage_1.default], { type: 'language' });
19
- return displayNames.of(code) !== code;
19
+ return displayNames.of(code) !== code.toLowerCase();
20
20
  }
21
21
  catch (_a) {
22
22
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generaltranslation",
3
- "version": "2.0.68",
3
+ "version": "2.0.69",
4
4
  "description": "A language toolkit for AI developers",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",