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
@@ -33,58 +33,60 @@ export default class OtaClient {
33
33
}
34
34
35
35
/**
36
-
* Get the distribution hash
36
+
* Get the distribution hash.
37
37
*
38
-
* @category Helper
38
+
* @category Helper Methods
39
39
*/
40
40
getHash(): string{
41
41
returnthis.distributionHash;
42
42
}
43
43
44
44
/**
45
45
* Define the global language for the client instance.
46
-
* Default language code to be used if language was not passed as an input argument of the method
46
+
* Default language code to be used if language was not passed as an input argument of the method.
47
47
*
48
-
* @param languageCode {@link https://developer.crowdin.com/language-codes Language Code}
49
-
* @category Helper
48
+
* @category Helper Methods
49
+
* @param languageCode {@link https://support.crowdin.com/developer/language-codes/ Language Code}
50
50
*/
51
51
setCurrentLocale(languageCode?: string): void{
52
52
this.locale=languageCode;
53
53
}
54
54
55
55
/**
56
-
* Get the current locale
56
+
* Get the current locale of the client instance.
57
57
*
58
-
* @category Helper
58
+
* @category Helper Methods
59
59
*/
60
60
getCurrentLocale(): string|undefined{
61
61
returnthis.locale;
62
62
}
63
63
64
64
/**
65
-
* Get manifest timestamp of distribution
65
+
* Get distribution's manifest timestamp.
66
66
*
67
-
* @category Helper
67
+
* @category Helper Methods
68
68
*/
69
69
asyncgetManifestTimestamp(): Promise<number>{
70
70
return(awaitthis.manifest).timestamp;
71
71
}
72
72
73
73
/**
74
-
* List distribution's files content
74
+
* List distribution's files content.
75
75
*
76
-
* @category Content Management
76
+
* @category Content Management Methods
77
+
*
78
+
* @returns An object mapping {@link https://support.crowdin.com/developer/language-codes/ Language Code} to arrays of strings: `{[languageCode: string]: string[]}`
77
79
*/
78
80
asyncgetContent(): Promise<Manifest['content']>{
79
81
return(awaitthis.manifest).content;
80
82
}
81
83
82
84
/**
83
-
* List distribution's files content for a specific language
85
+
* List distribution's files content for a specific language.
84
86
*
85
-
* @param languageCode {@link https://developer.crowdin.com/language-codes Language Code}
87
+
* @category Content Management Methods
86
88
*
87
-
* @category Content Management
89
+
* @param languageCode {@link https://support.crowdin.com/developer/language-codes/ Language Code}
0 commit comments