This repository has been archived by the owner on Oct 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
language.json
268 lines (268 loc) · 8.42 KB
/
language.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
{
"@metadata": {
"name": "language",
"comment": "This is a mixed library and object. The creator act as a library and can be fully identified by its library prefix, but the created object can not be identified unless intellisense is active. This is nearly always named as \"mw.language\", as it is part of the standard mw-lib, so it is pretty safe to assume it can be used as prefix.",
"authors": [
"Jeblad"
]
},
"mw.language 001": {
"prefix": "mw.language.fetchLanguageName( code, inLanguage )",
"body": [
"mw.language.fetchLanguageName( ${1:code}, ${2:inLanguage} )$0"
],
"description": "The full name of the language for the given language code.\n"
},
"mw.language 002": {
"prefix": "mw.language.fetchLanguageNames( inLanguage, include )",
"body": [
"mw.language.fetchLanguageNames( ${1:inLanguage}${2:, ${3:include}} )$0"
],
"description": "Fetch the list of known languages.\n"
},
"mw.language 003": {
"prefix": "mw.language.getContentLanguage()",
"body": [
"mw.language.getContentLanguage()$0"
],
"description": "Returns a language object for the default content language.\n"
},
"mw.language 004": {
"prefix": "mw.language.getContentLanguage()",
"body": [
"mw.getContentLanguage()$0"
],
"description": "Returns a language object for the default content language.\n"
},
"mw.language 005": {
"prefix": "mw.language.getFallbacksFor( langCode )",
"body": [
"mw.language.getFallbacksFor( ${1:langCode} )$0"
],
"description": "Returns a list of fallback language codes for the given code.\n"
},
"mw.language 006": {
"prefix": "mw.language.isKnownLanguageTag( langCode )",
"body": [
"mw.language.isKnownLanguageTag( ${1:langCode} )$0"
],
"description": "Checks whether language code is a valid built-in code with known denomyn.\n"
},
"mw.language 007": {
"prefix": "mw.language.isSupportedLanguage( langCode )",
"body": [
"mw.language.isSupportedLanguage( ${1:langCode} )$0"
],
"description": "Checks whether localisation is available for the language code.\n"
},
"mw.language 008": {
"prefix": "mw.language.isValidBuiltInCode( langCode )",
"body": [
"mw.language.isValidBuiltInCode( ${1:langCode} )$0"
],
"description": "Checks whether the language code is valid for internal customisation.\n"
},
"mw.language 009": {
"prefix": "mw.language.isValidCode( langCode )",
"body": [
"mw.language.isValidCode( ${1:langCode} )$0"
],
"description": "Checks whether the language code is superficially valid.\n"
},
"mw.language 010": {
"prefix": "mw.language.new( langCode )",
"body": [
"mw.language.new( ${1:langCode} )$0"
],
"description": "Creates a new language object for the language code."
},
"mw.language 011": {
"prefix": "mw.getLanguage( langCode )",
"body": [
"mw.getLanguage( ${1:langCode} )$0"
],
"description": "Creates a new language object for the language object."
},
"mw.language 012": {
"prefix": "mw.language:getCode()",
"body": [
":getCode()$0"
],
"description": "Get the language code for the current language object.\n"
},
"mw.language 013": {
"prefix": "mw.language:getFallbackLanguages()",
"body": [
":getFallbackLanguages()$0"
],
"description": "Get a list of language fallback codes for the current language object.\n"
},
"mw.language 014": {
"prefix": "mw.language:isRTL()",
"body": [
":isRTL()$0"
],
"description": "Checks whether the language code is right-to-left.\n"
},
"mw.language 015": {
"prefix": "mw.language:lc( string )",
"body": [
":lc( ${1:string} )$0"
],
"description": "Converts the whole string to lowercase.\n"
},
"mw.language 016": {
"prefix": "mw.language:lcfirst( string )",
"body": [
":lcfirst( ${1:string} )$0"
],
"description": "Converts the first char in the string to lowercase.\n"
},
"mw.language 017": {
"prefix": "mw.language:uc( string )",
"body": [
":uc( ${1:string} )$0"
],
"description": "Converts the whole string to uppercase.\n"
},
"mw.language 018": {
"prefix": "mw.language:ucfirst( string )",
"body": [
":ucfirst( ${1:string} )$0"
],
"description": "Converts the first char in the string to uppercase.\n"
},
"mw.language 019": {
"prefix": "mw.language:caseFold( string )",
"body": [
":caseFold( ${1:string} )$0"
],
"description": "Converts the string for case-insensitive comparison.\n"
},
"mw.language 020": {
"prefix": "mw.language:formatNum( number, options )",
"body": [
":formatNum( ${1:number}${2:, ${3:options}} )$0"
],
"description": "Formats a number according to rules for the given language.\n"
},
"mw.language 021": {
"prefix": "mw.language:formatDate( format, timestamp[, local] )",
"body": [
":formatDate( ${1:format}, ${2:timestamp}${3:, ${4:local}} )$0"
],
"description": "Formats a date according to rules for the given language.\n"
},
"mw.language 022": {
"prefix": "mw.language:formatDuration( seconds[, allowedIntervals] )",
"body": [
":formatDuration( ${1:seconds}${2:, ${3:allowedIntervals}} )$0"
],
"description": "Formats a duration according to rules for the given language.\n"
},
"mw.language 023": {
"prefix": "mw.language:parseFormattedNumber( string )",
"body": [
":parseFormattedNumber( ${1:string} )$0"
],
"description": "Inverts a formatted number in a given language into its source form.\n"
},
"mw.language 024": {
"prefix": "mw.language:convertPlural( number, ... )",
"body": [
":convertPlural( ${1:number}, ${2:...} )$0"
],
"description": "Choose the appropriate grammatical form given the language.\n"
},
"mw.language 025": {
"prefix": "mw.language:convertPlural( number, forms )",
"body": [
":convertPlural( ${1:number}, ${2:forms} )$0"
],
"description": "Choose the appropriate grammatical form given the language.\n"
},
"mw.language 026": {
"prefix": "mw.language:plural( number, ... )",
"body": [
":plural( ${1:number}, ${2:...} )$0"
],
"description": "Choose the appropriate grammatical form given the language.\n"
},
"mw.language 027": {
"prefix": "mw.language:plural( number, forms )",
"body": [
":plural( ${1:number}, ${2:forms} )$0"
],
"description": "Choose the appropriate grammatical form given the language.\n"
},
"mw.language 028": {
"prefix": "mw.language:convertGrammar( word, case )",
"body": [
":convertGrammar( ${1:word}, ${2:case} )$0"
],
"description": "Choose the appropriate inflection given the language.\n"
},
"mw.language 029": {
"prefix": "mw.language:grammar( case, word )",
"body": [
":grammar( ${1:word}, ${2:case} )$0"
],
"description": "Choose the appropriate inflection given the language.\n"
},
"mw.language 030": {
"prefix": "mw.language:gender( what, masculine, feminine, neutral )",
"body": [
":gender( ${1:what}, ${2:masculine}, ${3:feminine}, ${4:neutral} )$0"
],
"description": "Choose the appropriate gender form given the language.\n"
},
"mw.language 031": {
"prefix": "mw.language:gender( what, { masculine, feminine, neutral } )",
"body": [
":gender( ${1:what}, { ${2:masculine}, ${3:feminine}, ${4:neutral} } )$0"
],
"description": "Choose the appropriate gender form given the language.\n"
},
"mw.language 032": {
"prefix": "mw.language:getArrow( direction )",
"body": [
":getArrow( ${1:direction} )$0"
],
"description": "Get a Unicode arrow character corresponding to direction given the language.\n"
},
"mw.language 033": {
"prefix": "mw.language:getDir()",
"body": [
":getDir()$0"
],
"description": "Get the Unicode direction mark given the language.\n"
},
"mw.language 034": {
"prefix": "mw.language:getDirMark( opposite )",
"body": [
":getDirMark( ${1:opposite} )$0"
],
"description": "Get the Unicode direction mark corresponding to opposite given the language.\n"
},
"mw.language 035": {
"prefix": "mw.language:getDirMarkEntity( opposite )",
"body": [
":getDirMarkEntity( ${1:opposite} )$0"
],
"description": "mw.language:getDirMarkEntity( opposite )\n opposite - boolean for inverting direction"
},
"mw.language 036": {
"prefix": "mw.language:getDurationIntervals( seconds )",
"body": [
":getDurationIntervals( ${1:seconds} )$0"
],
"description": "Divides a duration according to rules for the given language.\n"
},
"mw.language 037": {
"prefix": "mw.language:getDurationIntervals( seconds, allowedIntervals )",
"body": [
":getDurationIntervals( ${1:seconds}${2:, ${3:allowedIntervals}} )$0"
],
"description": "Divides a duration according to rules for the given language.\n"
}
}