1/** 2 * Shared metric / gauge / chart / unit labels (en + fr). 3 * METRICS NAMING IS FROZEN â add new metrics only here. 4 */ 5(function (window) { 6 "use strict"; 7 8 function deepMerge(target, source) { 9 if (!source) return target; 10 for (var k in source) { 11 if (!Object.prototype.hasOwnProperty.call(source, k)) continue; 12 if ( 13 source[k] && 14 typeof source[k] === "object" && 15 !Array.isArray(source[k]) 16 ) { 17 target[k] = target[k] || {}; 18 deepMerge(target[k], source[k]); 19 } else { 20 target[k] = source[k]; 21 } 22 } 23 return target; 24 } 25 26 var metrics = { 27 en: { 28 metric: { 29 temperature: "Temperature", 30 dewpoint: "Dewpoint", 31 wind_chill: "Wind chill", 32 bgt: "BGT", 33 water_temperature: "Water Temperature", 34 pressure: "Pressure", 35 humidity: "Humidity", 36 rainfall: "Rainfall", 37 rain_bucket: "Rain Bucket", 38 solar: "Solar", 39 solar_energy: "Solar Energy", 40 wind_speed: "Wind Speed", 41 wind_direction: "Wind Direction", 42 tidal_speed: "Tidal Speed", 43 tidal_direction: "Tidal Direction", 44 sensor_voltage: "Sensor Voltage", 45 wcu_voltage: "WCU Voltage", 46 }, 47 gauge: { 48 wind_low: "Low", 49 wind_avg: "Average", 50 wind_max: "Max", 51 temp: "Temp", 52 dewpoint: "Dewpoint", 53 wind_chill: "Wind chill", 54 bgt: "BGT", 55 humidity: "Humidity", 56 pressure: "Pressure", 57 rainfall: "Rainfall", 58 live_rainfall: "Live Rainfall", 59 total_rainfall: "Total Rainfall", 60 live_rain: "Live Rain", 61 rain_total: "Rain Total", 62 tipping_bucket: "Tipping Bucket", 63 solar: "Solar", 64 }, 65 chart: { 66 time: "Time", 67 date: "Date", 68 wind_max: "Wind Max", 69 wind_avg: "Wind Avg", 70 wind_average: "Wind Average", 71 wind_low: "Wind Low", 72 wind_direction_average: "Wind Direction Average", 73 avg_direction: "Avg Direction", 74 relative_humidity_pct: "Relative Humidity in %", 75 rainfall_mm: "Rainfall in mm", 76 pressure_hpa: "Pressure in hPa", 77 dewpoint_celsius: "Dewpoint in Celsius", 78 dewpoint_fahrenheit: "Dewpoint in Fahrenheit", 79 wind_chill_celsius: "Wind chill in Celsius", 80 wind_chill_fahrenheit: "Wind chill in Fahrenheit", 81 bgt_celsius: "BGT in Celsius", 82 bgt_fahrenheit: "BGT in Fahrenheit", 83 temperature_celsius: "Temperature in Celsius", 84 temperature_fahrenheit: "Temperature in Fahrenheit", 85 solar_wm2: "Watts of solar energy per m²", 86 tidal_speed: "Tidal speed", 87 tidal_direction: "Tidal Direction", 88 water_temperature_celsius: "Water Temperature in Celsius", 89 rain_bucket_mm: "Rain Bucket in mm", 90 sensor_voltage: "Sensor Voltage", 91 wcu_voltage: "WCU Voltage", 92 pm1: "PM 1.0 Particles", 93 pm25: "PM 2.5 Particles", 94 pm10: "PM 10 Particles", 95 co2: "Carbon Dioxide", 96 amb_temp: "Amb Temp", 97 backed: "Backed", 98 veered: "Veered", 99 rh: "RH", 100 }, 101 unit: { 102 celsius: "Celsius", 103 fahrenheit: "Fahrenheit", 104 mph: "Miles Per Hour", 105 kts: "Knots", 106 mps: "Meters Per Second", 107 kph: "Kilometers Per Hour", 108 }, 109 }, 110 fr: { 111 metric: { 112 temperature: "Température", 113 dewpoint: "Point de rosée", 114 wind_chill: "Refroidissement éolique", 115 bgt: "Globe noir", 116 water_temperature: "Température de l'eau", 117 pressure: "Pression", 118 humidity: "Humidité", 119 rainfall: "Précipitations", 120 rain_bucket: "Seau de pluie", 121 solar: "Solaire", 122 solar_energy: "Ãnergie solaire", 123 wind_speed: "Vitesse du vent", 124 wind_direction: "Direction du vent", 125 tidal_speed: "Vitesse de marée", 126 tidal_direction: "Direction de marée", 127 sensor_voltage: "Tension du capteur", 128 wcu_voltage: "Tension WCU", 129 }, 130 gauge: { 131 wind_low: "Min.", 132 wind_avg: "Moyenne", 133 wind_max: "Max.", 134 temp: "Temp.", 135 dewpoint: "Point de rosée", 136 wind_chill: "Refroidissement éolique", 137 bgt: "Globe noir", 138 humidity: "Humidité", 139 pressure: "Pression", 140 rainfall: "Précipitations", 141 live_rainfall: "Précipitations en direct", 142 total_rainfall: "Précipitations totales", 143 live_rain: "Pluie en direct", 144 rain_total: "Total pluie", 145 tipping_bucket: "Auget basculant", 146 solar: "Solaire", 147 }, 148 chart: { 149 time: "Heure", 150 date: "Date", 151 wind_max: "Vent max", 152 wind_avg: "Vent moy", 153 wind_average: "Vent moyen", 154 wind_low: "Vent min", 155 wind_direction_average: "Direction moyenne du vent", 156 avg_direction: "Direction moy.", 157 relative_humidity_pct: "Humidité relative en %", 158 rainfall_mm: "Précipitations en mm", 159 pressure_hpa: "Pression en hPa", 160 dewpoint_celsius: "Point de rosée en Celsius", 161 dewpoint_fahrenheit: "Point de rosée en Fahrenheit", 162 wind_chill_celsius: "Refroidissement éolique en Celsius", 163 wind_chill_fahrenheit: "Refroidissement éolique en Fahrenheit", 164 bgt_celsius: "Globe noir en Celsius", 165 bgt_fahrenheit: "Globe noir en Fahrenheit", 166 temperature_celsius: "Température en Celsius", 167 temperature_fahrenheit: "Température en Fahrenheit", 168 solar_wm2: "Watts d'énergie solaire par m²", 169 tidal_speed: "Vitesse de marée", 170 tidal_direction: "Direction de marée", 171 water_temperature_celsius: "Température de l'eau en Celsius", 172 rain_bucket_mm: "Auget basculant en mm", 173 sensor_voltage: "Tension du capteur", 174 wcu_voltage: "Tension WCU", 175 pm1: "Particules PM 1,0", 176 pm25: "Particules PM 2,5", 177 pm10: "Particules PM 10", 178 co2: "Dioxyde de carbone", 179 amb_temp: "Temp. amb.", 180 backed: "Recul", 181 veered: "Virement", 182 rh: "HR", 183 }, 184 unit: { 185 celsius: "Celsius", 186 fahrenheit: "Fahrenheit", 187 mph: "Miles par heure", 188 kts: "NÅuds", 189 mps: "Mètres par seconde", 190 kph: "Kilomètres par heure", 191 }, 192 }, 193 }; 194 195 window.WF = window.WF || {}; 196 window.WF.i18nCatalogs = window.WF.i18nCatalogs || { en: {}, fr: {} }; 197 window.WF.i18nDeepMerge = deepMerge; 198 deepMerge(window.WF.i18nCatalogs.en, metrics.en); 199 deepMerge(window.WF.i18nCatalogs.fr, metrics.fr); 200})(window);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.