sugarizer icon indicating copy to clipboard operation
sugarizer copied to clipboard

Fix: Using SVG flags to bring compatibility to Windows

Open t-aswath opened this issue 9 months ago • 0 comments

Fixed #1757

As per the solution proposed in the issue, a flags folder has been added containing all flag images in SVG format from Flagpedia.

The flag.js file has been updated to serve as a mapping between country names and their respective country codes.

Additionally, the humane.log function, which supports rendering HTML, now includes an <img> tag. It retrieves the corresponding SVG file name from flag.js and renders it in the same format as before: flag <space> country.

Total size of the flags svg = ~ 3.7 MB

t-aswath avatar Feb 27 '25 20:02 t-aswath