generaltranslation 1.0.1 → 1.0.2

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/README.md +26 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -3,3 +3,29 @@
3
3
  <a href='https://www.generaltranslation.com' target="_blank">generaltranslation.com</a>
4
4
 
5
5
  A language toolkit for AI developers
6
+
7
+ ## Getting Started
8
+
9
+ ```
10
+ npm i generaltranslation
11
+ ```
12
+
13
+ ## Functions
14
+
15
+ ### getLanguageName
16
+
17
+ Returns a language name from a two or three-letter ISO 639 language code.
18
+
19
+ ```
20
+ import { getLanguageName } from 'generaltranslation'
21
+
22
+ const language = getLanguageName('en');
23
+ console.log(language) // 'English'
24
+
25
+ const otherLanguage = getLanguageName('spa') // 'spa' is equivalent to 'es'
26
+ console.log(otherLanguage) // 'Spanish'
27
+ ```
28
+
29
+ ## API
30
+
31
+ Coming soon!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generaltranslation",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "AI language toolkit in JS",
5
5
  "main": "index.js",
6
6
  "scripts": {