We're using the translation fallbacks for the icons, just like we do for texts. Note we use the `render?` method provided by view_component to make sure the component will not be rendered when certain features are disabled. Also note the `find_asset` method works differently in development and production, and so we use different approaches here.
2 lines
69 B
Plaintext
2 lines
69 B
Plaintext
<%= image_tag image_path, alt: image_text, class: "sdg-goal-icon" %>
|