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.
- package/README.md +2 -2
- package/index.js +6 -1
- 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
|
-
##
|
|
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
|
|
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;
|