Add translation for 'Feels like'

This commit is contained in:
yuanczx
2024-11-29 09:32:19 +08:00
parent 4ed4bf2394
commit 89e3440706
3 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -173,7 +173,7 @@ const BatteryModule = () => Stack({
const feelsLike = weather.current_condition[0][`FeelsLike${userOptions.weather.preferredUnit}`];
const weatherSymbol = WEATHER_SYMBOL[WWO_CODE[weatherCode]];
self.children[0].label = weatherSymbol;
self.children[1].label = `${temperature}°${userOptions.weather.preferredUnit} • Feels like ${feelsLike}°${userOptions.weather.preferredUnit}`;
self.children[1].label = `${temperature}°${userOptions.weather.preferredUnit}${getString('Feels like')} ${feelsLike}°${userOptions.weather.preferredUnit}`;
self.tooltipText = weatherDesc;
}).catch((err) => {
try { // Read from cache
@@ -186,7 +186,7 @@ const BatteryModule = () => Stack({
const feelsLike = weather.current_condition[0][`FeelsLike${userOptions.weather.preferredUnit}`];
const weatherSymbol = WEATHER_SYMBOL[WWO_CODE[weatherCode]];
self.children[0].label = weatherSymbol;
self.children[1].label = `${temperature}°${userOptions.weather.preferredUnit} • Feels like ${feelsLike}°${userOptions.weather.preferredUnit}`;
self.children[1].label = `${temperature}°${userOptions.weather.preferredUnit}${getString('Feels like')} ${feelsLike}°${userOptions.weather.preferredUnit}`;
self.tooltipText = weatherDesc;
} catch (err) {
print(err);