[GH-ISSUE #386] Support country code in upper case #238

Closed
opened 2026-03-03 14:35:43 +03:00 by kerem · 3 comments
Owner

Originally created by @sanaulla123 on GitHub (Aug 13, 2017).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/386

Currently the following HTML snippet renders empty:

<span class="flag-icon flag-icon-IN" title="INDIA"></span>

Can we have support to consider uppercase as well?

Originally created by @sanaulla123 on GitHub (Aug 13, 2017). Original GitHub issue: https://github.com/lipis/flag-icons/issues/386 Currently the following HTML snippet renders empty: `<span class="flag-icon flag-icon-IN" title="INDIA"></span>` Can we have support to consider uppercase as well?
kerem closed this issue 2026-03-03 14:35:43 +03:00
Author
Owner

@cborchmann commented on GitHub (Nov 6, 2017):

It´s easy to deal with in some cases:

<?php $flag = strtolower($iso); ?> <span class="flag-icon flag-icon-<?php echo $flag;?>" style="font-size: 5.0em"></span>

<!-- gh-comment-id:342232320 --> @cborchmann commented on GitHub (Nov 6, 2017): It´s easy to deal with in some cases: `<?php $flag = strtolower($iso); ?> <span class="flag-icon flag-icon-<?php echo $flag;?>" style="font-size: 5.0em"></span>`
Author
Owner

@sanaulla123 commented on GitHub (Nov 6, 2017):

Yes its easier, but out of the box support should be even more easier and a much better solution in my opinion

<!-- gh-comment-id:342233096 --> @sanaulla123 commented on GitHub (Nov 6, 2017): Yes its easier, but out of the box support should be even more easier and a much better solution in my opinion
Author
Owner

@lipis commented on GitHub (Nov 6, 2017):

sorry no..

<!-- gh-comment-id:342250726 --> @lipis commented on GitHub (Nov 6, 2017): sorry no..
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#238
No description provided.