import Foundation

struct PrecipitationChanceFormatter {
    func localizedStringFromPrecipitation(_ precipitation: Precipitation) -> String {
        let adjective = precipitation.chance.description
        let type = precipitation.type.capitalized
        return TroposCoreLocalizedString(adjective + type)
    }
}

import Foundation

struct PrecipitationChanceFormatter {
    func localizedStringFromPrecipitation(_ precipitation: Precipitation) -> String {
        let adjective = precipitation.chance.description.capitalized
        let type = precipitation.type.capitalized
        return TroposCoreLocalizedString(adjective + type)
    }
}

Fix localized string bug introduced with lowercase enum cases
Fix localized string bug introduced with lowercase enum cases

Lowercasing our enum cases had the unintended side effect of breaking
localized string lookup that relied upon the case name. Explicitly
capitalising the case name resolves the issue.
