Use localized string for weather time display in WeatherDetailsCard

This commit is contained in:
Nebojsa Vuksic 2025-08-01 13:18:33 +02:00
parent 376292e5f8
commit b603edf110
2 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,7 @@ fun WeatherDetailsCard(
) {
// Current Time
Text(
text = "Time: ${formatDateTime(currentWeatherForecast.date)}",
text = ComposeTemplateBundle.message("weather.app.time.text", timeToDisplay),
color = textColor,
fontSize = JewelTheme.defaultTextStyle.fontSize,
fontWeight = FontWeight.Bold

View File

@ -1,4 +1,5 @@
weather.app.temperature.text={0}\u00B0C
weather.app.time.text=Time: {0}%
weather.app.humidity.text=Humidity: {0}%
weather.app.wind.direction.text=Wind: {0} km/h {1}
weather.app.my.locations.header.text=My Locations