nva-language 1.0.10 → 1.0.12
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 +11 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -24,7 +24,14 @@ or
|
|
|
24
24
|
Use with:
|
|
25
25
|
|
|
26
26
|
```javascript
|
|
27
|
-
const
|
|
27
|
+
const bokmaal = getLanguageByBokmaalName('Engelsk')
|
|
28
|
+
const english = getLanguageByEnglishName("English")
|
|
29
|
+
const iso6391 = getLanguageByIso6391Code("en")
|
|
30
|
+
const iso6392 = getLanguageByIso6392Code("eng")
|
|
31
|
+
const iso6393 = getLanguageByIso6393Code("eng")
|
|
32
|
+
const nynorsk = getLanguageByNynorskName("Engelsk")
|
|
33
|
+
const sami = getLanguageBySamiName("Eaŋgalsgiella")
|
|
34
|
+
const uri = getLanguageByUri('http://lexvo.org/id/iso639-3/eng')
|
|
28
35
|
```
|
|
29
36
|
|
|
30
37
|
## The language object
|
|
@@ -103,13 +110,14 @@ There are a number of methods provided by nva-language, all of which return a La
|
|
|
103
110
|
- Given a Northern Sami token for a language, say "Eaŋgalsgiella", returns a Language object that either matches the token, or is the Undefined language
|
|
104
111
|
- Matching is not case sensitive
|
|
105
112
|
|
|
106
|
-
|
|
113
|
+
### getLanguageByUri
|
|
107
114
|
|
|
108
|
-
- example: `const english = getLanguageByUri('
|
|
115
|
+
- example: `const english = getLanguageByUri('http://lexvo.org/id/iso639-3/eng')`
|
|
109
116
|
- Given a Lexvo ISO 639-3 URI, returns the corresponding language object or Undefined language (in the case that the URI is not in use)
|
|
110
117
|
- Note: Lexvo does *not* use HTTPS
|
|
111
118
|
|
|
112
119
|
## Notes
|
|
120
|
+
|
|
113
121
|
### Valid and invalid languages
|
|
114
122
|
|
|
115
123
|
The languages supported in NVA are limited to the core languages used in Norwegian research publications, the list grows over time, but the list is still not long.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nva-language",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/LanguageMapper.js",
|
|
6
6
|
"module": "./src/LanguageMapper.mjs",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"author": "Rurik Thomas Greenall",
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"volta": {
|
|
25
|
-
"node": "14.
|
|
26
|
-
"npm": "
|
|
25
|
+
"node": "16.14.1",
|
|
26
|
+
"npm": "9.1.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@babel/cli": "^7.15.7",
|