You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/models/Language.js
+17-13Lines changed: 17 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,15 @@ import MultiLangString from './MultiLangString.js';
4
4
/**
5
5
* A class representing a language, formatted according to the [DLx Data Format for a language]{@link https://format.digitallinguistics.io/schemas/Language.html}
6
6
* @memberof models
7
-
* @extends Model
7
+
* @extendscore.Model
8
8
*/
9
9
classLanguageextendsModel{
10
10
11
+
/**
12
+
* The name of this language, as a [MultiLangString]{@link models.MultiLangString}
13
+
* @name models.Language#name
14
+
* @type {Map}
15
+
*/
11
16
#name;
12
17
13
18
/**
@@ -18,20 +23,19 @@ class Language extends Model {
18
23
19
24
super(data);
20
25
21
-
this.name=newMultiLangString(data.name);
22
-
23
-
}
26
+
this.#name =newMultiLangString(data.name);
24
27
25
-
/**
26
-
* The name of this language, as a [MultiLangString]{@link models.MultiLangString}
0 commit comments