generaltranslation 1.1.3 → 1.1.5

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 (3) hide show
  1. package/README.md +2 -2
  2. package/index.js +6 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -23,7 +23,7 @@ import GT from 'generaltranslation'
23
23
  const gt = new GT()
24
24
  ```
25
25
 
26
- ## Language Codes
26
+ ## Convert between languages and ISO-639 codes
27
27
 
28
28
  ### getLanguageName(codes)
29
29
 
@@ -49,7 +49,7 @@ const codes = gt.getLanguageCodes(['French', 'Spanish'])
49
49
  console.log(codes) // ['fr', 'es']
50
50
  ```
51
51
 
52
- ## Which AI models are compatible with which languages?
52
+ ## Which languages do AI models speak?
53
53
 
54
54
  We continually benchmark AI models and add new models as they are released. That means these functions have to be <code>async</code>. This information is provided as a public service. It's completely free and requires no API key.
55
55
 
package/index.js CHANGED
@@ -30,4 +30,9 @@ class GT {
30
30
 
31
31
  // ----- EXPORTS ----- //
32
32
 
33
- module.exports = GT;
33
+ module.exports = GT;
34
+ module.exports.getLanguageCode = getLanguageCode;
35
+ module.exports.getLanguageName = getLanguageName;
36
+ module.exports.getModelList = getModelList;
37
+ module.exports.getModelLanguages = getModelLanguages;
38
+ module.exports.isLanguageSupported = isLanguageSupported;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generaltranslation",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "A language toolkit for AI developers",
5
5
  "main": "index.js",
6
6
  "scripts": {