feat: add local fallback for flag-icons CSS
- Download flag-icons CSS and SVG sprites for supported languages (gb, fr, de, lu) - Add onerror fallback to all base templates (admin, vendor, shop) - CDN loads first, falls back to local copy if unavailable This ensures the language selector flags work even when CDN is blocked or unavailable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
5
static/shared/css/flags/1x1/fr.svg
Normal file
5
static/shared/css/flags/1x1/fr.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-fr" viewBox="0 0 512 512">
|
||||
<path fill="#fff" d="M0 0h512v512H0z"/>
|
||||
<path fill="#000091" d="M0 0h170.7v512H0z"/>
|
||||
<path fill="#e1000f" d="M341.3 0H512v512H341.3z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 231 B |
Reference in New Issue
Block a user