- Introduced `image_alt` method in the WeatherArt model
- Updated image tags in views to use the new method for alt text
- Ensured consistent and descriptive alt text for better accessibility
This change improves the overall usability for screen readers and helps maintain a standard format for alt descriptions across various components in the application.
- Implement locale extraction and fallback mechanism
- Add translation files for English and Chinese
- Update views to use translated strings for various UI elements
This commit introduces support for multiple languages in the application, enhancing accessibility for users. It includes a fallback mechanism for locales and updates to the user interface to display translated content.
- Introduce a new partial for displaying weather statistics in
a consistent card format.
- Refactor the city show page to utilize the new statistics
card partial, simplifying the code structure.
- Update layout and styling for improved UX and maintainability.
These changes enhance the maintainability of the codebase by
promoting reuse of the statistics card component and improving
the overall presentation of weather data for cities.