generaltranslation 2.0.19 → 2.0.20

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.
@@ -1,5 +1,7 @@
1
1
  /**
2
- * Standardizes a given language code.
2
+ * Ensures correct capitalization and formatting of a language code.
3
+ * @param {string} code - The language-country-script code to standardize.
4
+ * @returns {string} A BCP 47 language code.
3
5
  */
4
6
  declare function _standardizeLanguageCode(code: string): string;
5
7
  /**
@@ -34,7 +34,9 @@ const Predefined_json_1 = __importDefault(require("./predefined/Predefined.json"
34
34
  const Predefined = Predefined_json_1.default;
35
35
  // ----- VALIDITY CHECKS ----- //
36
36
  /**
37
- * Standardizes a given language code.
37
+ * Ensures correct capitalization and formatting of a language code.
38
+ * @param {string} code - The language-country-script code to standardize.
39
+ * @returns {string} A BCP 47 language code.
38
40
  */
39
41
  function _standardizeLanguageCode(code) {
40
42
  if (!code || typeof code !== 'string')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generaltranslation",
3
- "version": "2.0.19",
3
+ "version": "2.0.20",
4
4
  "description": "A language toolkit for AI developers",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {