weather-i18n 1.0.0

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.
@@ -0,0 +1,18 @@
1
+ import i18n from "./i18n";
2
+ import icons from "./icons";
3
+ import spec from "./spec";
4
+ import validator from "./validator";
5
+ const WMO4677 = {
6
+ spec,
7
+ i18n,
8
+ validator,
9
+ icons,
10
+ };
11
+ export default WMO4677;
12
+ export { default as WMO4677I18n } from "./i18n";
13
+ export { default as WMO4677Icons } from "./icons";
14
+ export * from "./spec";
15
+ export * from "./types";
16
+ export * from "./validator";
17
+ export { default as WMO4677Validator } from "./validator";
18
+ export { i18n, icons, spec, validator };
@@ -0,0 +1,408 @@
1
+ import type { WMO4677Code } from "./types";
2
+ export declare const WMO_4677_SPEC: {
3
+ readonly 0: {
4
+ readonly key: "cloud_not_observed";
5
+ readonly description: "Cloud development not observed or not observable";
6
+ };
7
+ readonly 1: {
8
+ readonly key: "cloud_dissolving";
9
+ readonly description: "Cloud generally dissolving or becoming less developed";
10
+ };
11
+ readonly 2: {
12
+ readonly key: "sky_unchanged";
13
+ readonly description: "State of sky on the whole unchanged";
14
+ };
15
+ readonly 3: {
16
+ readonly key: "cloud_developing";
17
+ readonly description: "Clouds generally forming or developing";
18
+ };
19
+ readonly 4: {
20
+ readonly key: "smoke_haze_reduced_visibility";
21
+ readonly description: "Visibility reduced by smoke, e.g. veldt or forest fires, industrial smoke or volcanic ashes";
22
+ };
23
+ readonly 5: {
24
+ readonly key: "haze";
25
+ readonly description: "Haze";
26
+ };
27
+ readonly 6: {
28
+ readonly key: "dust_suspension";
29
+ readonly description: "Widespread dust in suspension in the air, not raised by wind at or near the station at the time of observation";
30
+ };
31
+ readonly 7: {
32
+ readonly key: "dust_sand_raised_by_wind";
33
+ readonly description: "Dust or sand raised by wind at or near the station at the time of observation, but no well-developed dust/sand whirls and no duststorm or sandstorm";
34
+ };
35
+ readonly 8: {
36
+ readonly key: "dust_sand_whirls";
37
+ readonly description: "Well-developed dust or sand whirl(s) seen at or near the station during the preceding hour or at the time of observation, but no duststorm or sandstorm";
38
+ };
39
+ readonly 9: {
40
+ readonly key: "duststorm_sandstorm";
41
+ readonly description: "Duststorm or sandstorm within sight at the time of observation, or at the station during the preceding hour";
42
+ };
43
+ readonly 10: {
44
+ readonly key: "mist";
45
+ readonly description: "Mist";
46
+ };
47
+ readonly 11: {
48
+ readonly key: "fog_patches_shallow";
49
+ readonly description: "Patches of shallow fog or ice fog at the station, not deeper than about 2m on land or 10m at sea";
50
+ };
51
+ readonly 12: {
52
+ readonly key: "fog_shallow_continuous";
53
+ readonly description: "More or less continuous shallow fog or ice fog at the station, not deeper than about 2m on land or 10m at sea";
54
+ };
55
+ readonly 13: {
56
+ readonly key: "lightning_no_thunder";
57
+ readonly description: "Lightning visible, no thunder heard";
58
+ };
59
+ readonly 14: {
60
+ readonly key: "precipitation_not_reaching_ground";
61
+ readonly description: "Precipitation within sight, not reaching the ground or the surface of the sea";
62
+ };
63
+ readonly 15: {
64
+ readonly key: "precipitation_distant";
65
+ readonly description: "Precipitation within sight, reaching the ground, but distant (> 5 km from the station)";
66
+ };
67
+ readonly 16: {
68
+ readonly key: "precipitation_nearby";
69
+ readonly description: "Precipitation within sight, reaching the ground, near to but not at the station";
70
+ };
71
+ readonly 17: {
72
+ readonly key: "thunderstorm_no_precipitation";
73
+ readonly description: "Thunderstorm, but no precipitation at the time of observation";
74
+ };
75
+ readonly 18: {
76
+ readonly key: "squalls";
77
+ readonly description: "Squalls at or within sight of the station during the preceding hour or at the time of observation";
78
+ };
79
+ readonly 19: {
80
+ readonly key: "funnel_clouds";
81
+ readonly description: "Funnel clouds at or within sight of the station during the preceding hour or at the time of observation";
82
+ };
83
+ readonly 20: {
84
+ readonly key: "drizzle_or_snow_grains_past_hour";
85
+ readonly description: "Drizzle (not freezing) or snow grains, not falling as showers, during the preceding hour but not at the time of observation";
86
+ };
87
+ readonly 21: {
88
+ readonly key: "rain_past_hour";
89
+ readonly description: "Rain (not freezing), not falling as showers, during the preceding hour but not at the time of observation";
90
+ };
91
+ readonly 22: {
92
+ readonly key: "snow_past_hour";
93
+ readonly description: "Snow, not falling as showers, during the preceding hour but not at the time of observation";
94
+ };
95
+ readonly 23: {
96
+ readonly key: "rain_and_snow_past_hour";
97
+ readonly description: "Rain and snow or ice pellets, not falling as showers, during the preceding hour but not at the time of observation";
98
+ };
99
+ readonly 24: {
100
+ readonly key: "freezing_drizzle_or_rain_past_hour";
101
+ readonly description: "Freezing drizzle or freezing rain, during the preceding hour but not at the time of observation";
102
+ };
103
+ readonly 25: {
104
+ readonly key: "rain_showers_past_hour";
105
+ readonly description: "Shower(s) of rain during the preceding hour but not at the time of observation";
106
+ };
107
+ readonly 26: {
108
+ readonly key: "snow_showers_past_hour";
109
+ readonly description: "Shower(s) of snow, or of rain and snow, during the preceding hour but not at the time of observation";
110
+ };
111
+ readonly 27: {
112
+ readonly key: "hail_showers_past_hour";
113
+ readonly description: "Shower(s) of hail, or of rain and hail, during the preceding hour but not at the time of observation";
114
+ };
115
+ readonly 28: {
116
+ readonly key: "fog_past_hour";
117
+ readonly description: "Fog or ice fog during the preceding hour but not at the time of observation";
118
+ };
119
+ readonly 29: {
120
+ readonly key: "thunderstorm_past_hour";
121
+ readonly description: "Thunderstorm (with or without precipitation) during the preceding hour but not at the time of observation";
122
+ };
123
+ readonly 30: {
124
+ readonly key: "duststorm_decreasing";
125
+ readonly description: "Slight or moderate duststorm or sandstorm - has decreased during the preceding hour";
126
+ };
127
+ readonly 31: {
128
+ readonly key: "duststorm_no_change";
129
+ readonly description: "Slight or moderate duststorm or sandstorm - no appreciable change during the preceding hour";
130
+ };
131
+ readonly 32: {
132
+ readonly key: "duststorm_increasing";
133
+ readonly description: "Slight or moderate duststorm or sandstorm - has begun or has increased during the preceding hour";
134
+ };
135
+ readonly 33: {
136
+ readonly key: "severe_duststorm_decreasing";
137
+ readonly description: "Severe duststorm or sandstorm - has decreased during the preceding hour";
138
+ };
139
+ readonly 34: {
140
+ readonly key: "severe_duststorm_no_change";
141
+ readonly description: "Severe duststorm or sandstorm - no appreciable change during the preceding hour";
142
+ };
143
+ readonly 35: {
144
+ readonly key: "severe_duststorm_increasing";
145
+ readonly description: "Severe duststorm or sandstorm - has begun or has increased during the preceding hour";
146
+ };
147
+ readonly 36: {
148
+ readonly key: "drifting_snow_low_slight";
149
+ readonly description: "Slight/moderate drifting snow - generally low (below eye level)";
150
+ };
151
+ readonly 37: {
152
+ readonly key: "drifting_snow_low_heavy";
153
+ readonly description: "Heavy drifting snow - generally low (below eye level)";
154
+ };
155
+ readonly 38: {
156
+ readonly key: "blowing_snow_high_slight";
157
+ readonly description: "Slight/moderate blowing snow - generally high (above eye level)";
158
+ };
159
+ readonly 39: {
160
+ readonly key: "blowing_snow_high_heavy";
161
+ readonly description: "Heavy blowing snow - generally high (above eye level)";
162
+ };
163
+ readonly 40: {
164
+ readonly key: "fog_distant";
165
+ readonly description: "Fog or ice fog at a distance at the time of observation, but not at the station during the preceding hour, extending above the level of the observer";
166
+ };
167
+ readonly 41: {
168
+ readonly key: "fog_patches";
169
+ readonly description: "Fog or ice fog in patches";
170
+ };
171
+ readonly 42: {
172
+ readonly key: "fog_thinning_sky_visible";
173
+ readonly description: "Fog/ice fog, sky visible, has become thinner during the preceding hour";
174
+ };
175
+ readonly 43: {
176
+ readonly key: "fog_thinning_sky_invisible";
177
+ readonly description: "Fog/ice fog, sky invisible, has become thinner during the preceding hour";
178
+ };
179
+ readonly 44: {
180
+ readonly key: "fog_no_change_sky_visible";
181
+ readonly description: "Fog or ice fog, sky visible, no appreciable change during the preceding hour";
182
+ };
183
+ readonly 45: {
184
+ readonly key: "fog_no_change_sky_invisible";
185
+ readonly description: "Fog or ice fog, sky invisible, no appreciable change during the preceding hour";
186
+ };
187
+ readonly 46: {
188
+ readonly key: "fog_thickening_sky_visible";
189
+ readonly description: "Fog or ice fog, sky visible, has begun or has become thicker during the preceding hour";
190
+ };
191
+ readonly 47: {
192
+ readonly key: "fog_thickening_sky_invisible";
193
+ readonly description: "Fog or ice fog, sky invisible, has begun or has become thicker during the preceding hour";
194
+ };
195
+ readonly 48: {
196
+ readonly key: "fog_rime_sky_visible";
197
+ readonly description: "Fog, depositing rime, sky visible";
198
+ };
199
+ readonly 49: {
200
+ readonly key: "fog_rime_sky_invisible";
201
+ readonly description: "Fog, depositing rime, sky invisible";
202
+ };
203
+ readonly 50: {
204
+ readonly key: "drizzle_intermittent_slight";
205
+ readonly description: "Drizzle, not freezing, intermittent, slight at time of observation";
206
+ };
207
+ readonly 51: {
208
+ readonly key: "drizzle_continuous_slight";
209
+ readonly description: "Drizzle, not freezing, continuous, slight at time of observation";
210
+ };
211
+ readonly 52: {
212
+ readonly key: "drizzle_intermittent_moderate";
213
+ readonly description: "Drizzle, not freezing, intermittent, moderate at time of observation";
214
+ };
215
+ readonly 53: {
216
+ readonly key: "drizzle_continuous_moderate";
217
+ readonly description: "Drizzle, not freezing, continuous, moderate at time of observation";
218
+ };
219
+ readonly 54: {
220
+ readonly key: "drizzle_intermittent_heavy";
221
+ readonly description: "Drizzle, not freezing, intermittent, heavy at time of observation";
222
+ };
223
+ readonly 55: {
224
+ readonly key: "drizzle_continuous_heavy";
225
+ readonly description: "Drizzle, not freezing, continuous, heavy at time of observation";
226
+ };
227
+ readonly 56: {
228
+ readonly key: "freezing_drizzle_slight";
229
+ readonly description: "Drizzle, freezing, slight";
230
+ };
231
+ readonly 57: {
232
+ readonly key: "freezing_drizzle_moderate_heavy";
233
+ readonly description: "Drizzle, freezing, moderate or heavy (dense)";
234
+ };
235
+ readonly 58: {
236
+ readonly key: "rain_drizzle_slight";
237
+ readonly description: "Rain and drizzle, slight";
238
+ };
239
+ readonly 59: {
240
+ readonly key: "rain_drizzle_moderate_heavy";
241
+ readonly description: "Rain and drizzle, moderate or heavy";
242
+ };
243
+ readonly 60: {
244
+ readonly key: "rain_intermittent_slight";
245
+ readonly description: "Rain, not freezing, intermittent, slight at time of observation";
246
+ };
247
+ readonly 61: {
248
+ readonly key: "rain_continuous_slight";
249
+ readonly description: "Rain, not freezing, continuous, slight at time of observation";
250
+ };
251
+ readonly 62: {
252
+ readonly key: "rain_intermittent_moderate";
253
+ readonly description: "Rain, not freezing, intermittent, moderate at time of observation";
254
+ };
255
+ readonly 63: {
256
+ readonly key: "rain_continuous_moderate";
257
+ readonly description: "Rain, not freezing, continuous, moderate at time of observation";
258
+ };
259
+ readonly 64: {
260
+ readonly key: "rain_intermittent_heavy";
261
+ readonly description: "Rain, not freezing, intermittent, heavy at time of observation";
262
+ };
263
+ readonly 65: {
264
+ readonly key: "rain_continuous_heavy";
265
+ readonly description: "Rain, not freezing, continuous, heavy at time of observation";
266
+ };
267
+ readonly 66: {
268
+ readonly key: "freezing_rain_slight";
269
+ readonly description: "Rain, freezing, slight";
270
+ };
271
+ readonly 67: {
272
+ readonly key: "freezing_rain_moderate_heavy";
273
+ readonly description: "Rain, freezing, moderate or heavy";
274
+ };
275
+ readonly 68: {
276
+ readonly key: "rain_snow_mixed_slight";
277
+ readonly description: "Rain or drizzle and snow, slight";
278
+ };
279
+ readonly 69: {
280
+ readonly key: "rain_snow_mixed_moderate_heavy";
281
+ readonly description: "Rain or drizzle and snow, moderate or heavy";
282
+ };
283
+ readonly 70: {
284
+ readonly key: "snowflakes_intermittent_slight";
285
+ readonly description: "Intermittent fall of snowflakes, slight at time of observation";
286
+ };
287
+ readonly 71: {
288
+ readonly key: "snowflakes_continuous_slight";
289
+ readonly description: "Continuous fall of snowflakes, slight at time of observation";
290
+ };
291
+ readonly 72: {
292
+ readonly key: "snowflakes_intermittent_moderate";
293
+ readonly description: "Intermittent fall of snowflakes, moderate at time of observation";
294
+ };
295
+ readonly 73: {
296
+ readonly key: "snowflakes_continuous_moderate";
297
+ readonly description: "Continuous fall of snowflakes, moderate at time of observation";
298
+ };
299
+ readonly 74: {
300
+ readonly key: "snowflakes_intermittent_heavy";
301
+ readonly description: "Intermittent fall of snowflakes, heavy at time of observation";
302
+ };
303
+ readonly 75: {
304
+ readonly key: "snowflakes_continuous_heavy";
305
+ readonly description: "Continuous fall of snowflakes, heavy at time of observation";
306
+ };
307
+ readonly 76: {
308
+ readonly key: "diamond_dust";
309
+ readonly description: "Diamond dust (with or without fog)";
310
+ };
311
+ readonly 77: {
312
+ readonly key: "snow_grains";
313
+ readonly description: "Snow grains (with or without fog)";
314
+ };
315
+ readonly 78: {
316
+ readonly key: "snow_crystals";
317
+ readonly description: "Isolated star-like snow crystals (with or without fog)";
318
+ };
319
+ readonly 79: {
320
+ readonly key: "ice_pellets";
321
+ readonly description: "Ice pellets";
322
+ };
323
+ readonly 80: {
324
+ readonly key: "rain_showers_slight";
325
+ readonly description: "Rain shower(s), slight";
326
+ };
327
+ readonly 81: {
328
+ readonly key: "rain_showers_moderate_heavy";
329
+ readonly description: "Rain shower(s), moderate or heavy";
330
+ };
331
+ readonly 82: {
332
+ readonly key: "rain_showers_violent";
333
+ readonly description: "Rain shower(s), violent";
334
+ };
335
+ readonly 83: {
336
+ readonly key: "rain_snow_showers_slight";
337
+ readonly description: "Shower(s) of rain and snow, slight";
338
+ };
339
+ readonly 84: {
340
+ readonly key: "rain_snow_showers_moderate_heavy";
341
+ readonly description: "Shower(s) of rain and snow, moderate or heavy";
342
+ };
343
+ readonly 85: {
344
+ readonly key: "snow_showers_slight";
345
+ readonly description: "Snow shower(s), slight";
346
+ };
347
+ readonly 86: {
348
+ readonly key: "snow_showers_moderate_heavy";
349
+ readonly description: "Snow shower(s), moderate or heavy";
350
+ };
351
+ readonly 87: {
352
+ readonly key: "snow_pellets_hail_showers_slight";
353
+ readonly description: "Shower(s) of snow pellets or small hail, with or without rain or rain and snow mixed - slight";
354
+ };
355
+ readonly 88: {
356
+ readonly key: "snow_pellets_hail_showers_moderate_heavy";
357
+ readonly description: "Shower(s) of snow pellets or small hail, with or without rain or rain and snow mixed - moderate or heavy";
358
+ };
359
+ readonly 89: {
360
+ readonly key: "hail_showers_no_thunder_slight";
361
+ readonly description: "Shower(s) of hail, with or without rain or rain and snow mixed, not associated with thunder - slight";
362
+ };
363
+ readonly 90: {
364
+ readonly key: "hail_showers_no_thunder_moderate_heavy";
365
+ readonly description: "Shower(s) of hail, with or without rain or rain and snow mixed, not associated with thunder - moderate or heavy";
366
+ };
367
+ readonly 91: {
368
+ readonly key: "rain_with_recent_thunderstorm_slight";
369
+ readonly description: "Slight rain at time of observation - thunderstorm during the preceding hour but not at time of observation";
370
+ };
371
+ readonly 92: {
372
+ readonly key: "rain_with_recent_thunderstorm_moderate_heavy";
373
+ readonly description: "Moderate or heavy rain at time of observation - thunderstorm during the preceding hour but not at time of observation";
374
+ };
375
+ readonly 93: {
376
+ readonly key: "snow_hail_with_recent_thunderstorm_slight";
377
+ readonly description: "Slight snow, or rain and snow mixed or hail at time of observation - thunderstorm during the preceding hour but not at time of observation";
378
+ };
379
+ readonly 94: {
380
+ readonly key: "snow_hail_with_recent_thunderstorm_moderate_heavy";
381
+ readonly description: "Moderate or heavy snow, or rain and snow mixed or hail at time of observation - thunderstorm during the preceding hour but not at time of observation";
382
+ };
383
+ readonly 95: {
384
+ readonly key: "thunderstorm_slight_moderate_no_hail";
385
+ readonly description: "Thunderstorm, slight or moderate, without hail, but with rain and/or snow at time of observation";
386
+ };
387
+ readonly 96: {
388
+ readonly key: "thunderstorm_slight_moderate_with_hail";
389
+ readonly description: "Thunderstorm, slight or moderate, with hail at time of observation";
390
+ };
391
+ readonly 97: {
392
+ readonly key: "thunderstorm_heavy_no_hail";
393
+ readonly description: "Thunderstorm, heavy, without hail, but with rain and/or snow at time of observation";
394
+ };
395
+ readonly 98: {
396
+ readonly key: "thunderstorm_with_duststorm";
397
+ readonly description: "Thunderstorm combined with dust/sandstorm at time of observation";
398
+ };
399
+ readonly 99: {
400
+ readonly key: "thunderstorm_heavy_with_hail";
401
+ readonly description: "Thunderstorm, heavy with hail at time of observation";
402
+ };
403
+ };
404
+ export default WMO_4677_SPEC;
405
+ export type WMO4677Key = (typeof WMO_4677_SPEC)[WMO4677Code]["key"];
406
+ export declare const CODE_BY_KEY: Record<WMO4677Key, WMO4677Code>;
407
+ export declare const HUMAN_KEYS: [WMO4677Key, ...WMO4677Key[]];
408
+ export declare const isValidCode: (n: number) => n is WMO4677Code;