flag_icon 1.4.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +18 -12
- data/lib/flag_icon/countries.rb +20 -3
- data/lib/flag_icon/helpers.rb +21 -13
- data/lib/flag_icon/rails/version.rb +1 -1
- data/vendor/assets/images/flags/4x3/ak.svg +109 -0
- data/vendor/assets/stylesheets/flag-icons/_flag-icons-list.scss +3 -3
- metadata +2 -2
- data/vendor/assets/images/flags/4x3/hi.svg +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e456ac9f80a682f0c1419f78e93f51fbeb6d9b0d4de17cdc45c66783f563bad0
|
4
|
+
data.tar.gz: 24697340468ba9ee716e32c58da7fd5e3c74440593e600d4cb25090537033bb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35703ca1bd45aede2edcb8d7a61b76e2f34ffee07bb482b7901d5ab7db70a7bfb78df2dc84271b61c4454f4038a857e1f538bc791aeea098a0b3d710d91aa224
|
7
|
+
data.tar.gz: 6ff735512f3d5b657591f0ccfa3f021b954d51e0bb863155497a709f1cf6e1e6fe3cbe98bb8b4567fb659651189c58534be1c40100ec25648a1a88c2819f7c76
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,16 +2,15 @@
|
|
2
2
|
[](https://badge.fury.io/rb/flag_icon)
|
3
3
|
|
4
4
|
### Purpose
|
5
|
-
An attempt to map languages to flags!
|
5
|
+
An attempt to map languages to country flags!
|
6
6
|
|
7
7
|
### Approach
|
8
8
|
Matching flags to languages can be really tricky and even problematic sometimes because there is no direct association
|
9
|
-
between languages and countries since the same language is spoken in many countries and many languages are spoken in a single.
|
10
|
-
So a effort was made to identify the official language of each country and then assign the flag to the language not the country.
|
9
|
+
between languages and countries since the same language is spoken in many countries and many languages are spoken in a single country.
|
11
10
|
|
12
11
|
So for a title from Mexico which has spanish as the official language the spanish flag will appear.
|
13
12
|
|
14
|
-
|
13
|
+
If you notice any flags being mismatched please raise an [issue](https://github.com/alexwebgr/flag_icon/issues)
|
15
14
|
or even better open a [pull request](https://github.com/alexwebgr/flag_icon/pulls)
|
16
15
|
|
17
16
|
|
@@ -43,12 +42,12 @@ There is a number of helpers available that will render country names, language
|
|
43
42
|
language_icon
|
44
43
|
```
|
45
44
|
```ruby
|
46
|
-
# It returns HTML element with country icon
|
45
|
+
# It returns HTML element with country icon and title
|
47
46
|
#
|
48
47
|
# @param code -> country iso code
|
49
|
-
# @example
|
48
|
+
# @example country_icon('gr')
|
50
49
|
# @return String
|
51
|
-
|
50
|
+
country_icon
|
52
51
|
```
|
53
52
|
```ruby
|
54
53
|
# It returns the language name
|
@@ -62,7 +61,7 @@ language_name
|
|
62
61
|
# It returns the country name
|
63
62
|
#
|
64
63
|
# @param code -> country iso code
|
65
|
-
# @example
|
64
|
+
# @example country_name('gr') # => Greece
|
66
65
|
# @return String
|
67
66
|
country_name
|
68
67
|
```
|
@@ -70,18 +69,25 @@ country_name
|
|
70
69
|
# It returns the country iso code
|
71
70
|
#
|
72
71
|
# @param code -> language locale
|
73
|
-
# @example
|
72
|
+
# @example language_flag('el') # => gr
|
74
73
|
# @return String
|
75
74
|
language_flag
|
76
75
|
```
|
77
76
|
```ruby
|
78
|
-
# It returns the
|
77
|
+
# It returns an array that can be used in the select tag
|
78
|
+
#
|
79
|
+
# @example select_language
|
80
|
+
# @return Array
|
81
|
+
select_language
|
82
|
+
```
|
83
|
+
```ruby
|
84
|
+
# It returns an hash of arrays that can be used in the select tag
|
79
85
|
#
|
80
86
|
# @param popular -> title of the popular group
|
81
87
|
# @param available -> title of the available group
|
82
|
-
# @example
|
88
|
+
# @example grouped_select_language(popular: 'Popular', available: 'Available')
|
83
89
|
# @return Hash
|
84
|
-
|
90
|
+
grouped_select_language
|
85
91
|
```
|
86
92
|
```ruby
|
87
93
|
# Define in your application_helper to override the popular languages
|
data/lib/flag_icon/countries.rb
CHANGED
@@ -2,6 +2,7 @@ module FlagIcon::Countries
|
|
2
2
|
# ISO country codes to county name
|
3
3
|
NAMES = {
|
4
4
|
ab: "Abkhazia",
|
5
|
+
ak: "Alaska",
|
5
6
|
ad: "Andorra",
|
6
7
|
ae: "United Arab Emirates",
|
7
8
|
af: "Afghanistan",
|
@@ -257,6 +258,7 @@ module FlagIcon::Countries
|
|
257
258
|
LANGUAGE_FLAGS = {
|
258
259
|
ca: "es-ct",
|
259
260
|
gl: "es-ga",
|
261
|
+
eu: "es-eu",
|
260
262
|
ar: "ae",
|
261
263
|
fa: "af",
|
262
264
|
en: "gb",
|
@@ -298,6 +300,7 @@ module FlagIcon::Countries
|
|
298
300
|
is: "is",
|
299
301
|
it: "it",
|
300
302
|
ja: "jp",
|
303
|
+
jp: "jp",
|
301
304
|
ky: "kg",
|
302
305
|
km: "kh",
|
303
306
|
ko: "ko",
|
@@ -350,7 +353,6 @@ module FlagIcon::Countries
|
|
350
353
|
zu: "za",
|
351
354
|
bg: "bg",
|
352
355
|
cy: "gb-wls",
|
353
|
-
eu: "es-eu",
|
354
356
|
he: "il",
|
355
357
|
yi: "il",
|
356
358
|
ig: "ng",
|
@@ -360,6 +362,8 @@ module FlagIcon::Countries
|
|
360
362
|
sl: "si",
|
361
363
|
wo: "sn",
|
362
364
|
ak: "gh",
|
365
|
+
ab: "ab",
|
366
|
+
xx: "xx",
|
363
367
|
}
|
364
368
|
|
365
369
|
# language code to language name
|
@@ -369,6 +373,7 @@ module FlagIcon::Countries
|
|
369
373
|
"ab": "Abkhazian",
|
370
374
|
"aa": "Afar",
|
371
375
|
"af": "Afrikaans",
|
376
|
+
"al": "Albanian",
|
372
377
|
"sq": "Albanian",
|
373
378
|
"am": "Amharic",
|
374
379
|
"ar": "Arabic",
|
@@ -416,7 +421,9 @@ module FlagIcon::Countries
|
|
416
421
|
"gu": "Gujarati",
|
417
422
|
"ha": "Hausa",
|
418
423
|
"he": "Hebrew",
|
424
|
+
"in": "Hindi",
|
419
425
|
"hi": "Hindi",
|
426
|
+
"ht": "Haitian",
|
420
427
|
"hu": "Hungarian",
|
421
428
|
"is": "Icelandic",
|
422
429
|
"id": "Indonesian",
|
@@ -426,7 +433,8 @@ module FlagIcon::Countries
|
|
426
433
|
"ik": "Inupiak",
|
427
434
|
"ga": "Irish",
|
428
435
|
"it": "Italian",
|
429
|
-
"ja": "
|
436
|
+
"ja": "Japanese",
|
437
|
+
"jp": "Japanese",
|
430
438
|
"kn": "Kannada",
|
431
439
|
"ks": "Kashmiri",
|
432
440
|
"kk": "Kazakh",
|
@@ -434,6 +442,7 @@ module FlagIcon::Countries
|
|
434
442
|
"ky": "Kirghiz",
|
435
443
|
"rn": "Kirundi (Rundi)",
|
436
444
|
"ko": "Korean",
|
445
|
+
"kr": "Korean",
|
437
446
|
"ku": "Kurdish",
|
438
447
|
"lo": "Laothian",
|
439
448
|
"la": "Latin",
|
@@ -441,6 +450,7 @@ module FlagIcon::Countries
|
|
441
450
|
"li": "Limburgish ( Limburger)",
|
442
451
|
"ln": "Lingala",
|
443
452
|
"lt": "Lithuanian",
|
453
|
+
"lb": "Luxembourgish",
|
444
454
|
"mk": "Macedonian",
|
445
455
|
"mg": "Malagasy",
|
446
456
|
"ms": "Malay",
|
@@ -450,6 +460,9 @@ module FlagIcon::Countries
|
|
450
460
|
"mr": "Marathi",
|
451
461
|
"mo": "Moldavian",
|
452
462
|
"mn": "Mongolian",
|
463
|
+
"mh": "Marshallese",
|
464
|
+
"dv": "Divehi",
|
465
|
+
"ny": "Chichewa",
|
453
466
|
"na": "Nauru",
|
454
467
|
"ne": "Nepali",
|
455
468
|
"no": "Norwegian",
|
@@ -479,10 +492,12 @@ module FlagIcon::Countries
|
|
479
492
|
"sk": "Slovak",
|
480
493
|
"sl": "Slovenian",
|
481
494
|
"so": "Somali",
|
495
|
+
"lg": "Ganda",
|
482
496
|
"es": "Spanish",
|
483
497
|
"su": "Sundanese",
|
484
498
|
"sw": "Swahili (Kiswahili)",
|
485
499
|
"sv": "Swedish",
|
500
|
+
"se": "Swedish",
|
486
501
|
"tl": "Tagalog",
|
487
502
|
"tg": "Tajik",
|
488
503
|
"ta": "Tamil",
|
@@ -496,6 +511,7 @@ module FlagIcon::Countries
|
|
496
511
|
"tr": "Turkish",
|
497
512
|
"tk": "Turkmen",
|
498
513
|
"tw": "Twi",
|
514
|
+
"tvl": "Tuvalu",
|
499
515
|
"ug": "Uighur",
|
500
516
|
"uk": "Ukrainian",
|
501
517
|
"ur": "Urdu",
|
@@ -507,6 +523,7 @@ module FlagIcon::Countries
|
|
507
523
|
"xh": "Xhosa",
|
508
524
|
"yi": "Yiddish",
|
509
525
|
"yo": "Yoruba",
|
510
|
-
"zu": "Zulu"
|
526
|
+
"zu": "Zulu",
|
527
|
+
"xx": "Unknown"
|
511
528
|
}
|
512
529
|
end
|
data/lib/flag_icon/helpers.rb
CHANGED
@@ -11,7 +11,7 @@ module FlagIcon
|
|
11
11
|
# It returns the country name
|
12
12
|
#
|
13
13
|
# @param code -> country iso code
|
14
|
-
# @example
|
14
|
+
# @example country_name('gr') # => Greece
|
15
15
|
# @return String
|
16
16
|
def country_name(code)
|
17
17
|
FlagIcon::Countries::NAMES[code.to_sym]
|
@@ -20,42 +20,49 @@ module FlagIcon
|
|
20
20
|
# It returns the country iso code
|
21
21
|
#
|
22
22
|
# @param code -> language locale
|
23
|
-
# @example
|
23
|
+
# @example language_flag('el') # => gr
|
24
24
|
# @return String
|
25
25
|
def language_flag(code)
|
26
26
|
FlagIcon::Countries::LANGUAGE_FLAGS[code.to_sym] || 'xx'
|
27
27
|
end
|
28
28
|
|
29
|
-
# It returns the
|
29
|
+
# It returns an array that can be used in the select tag
|
30
|
+
#
|
31
|
+
# @example select_language
|
32
|
+
# @return Array
|
33
|
+
def select_language
|
34
|
+
available_languages.map { |lang| [language_name(lang), lang] }
|
35
|
+
end
|
36
|
+
|
37
|
+
# It returns an hash of arrays that can be used in the select tag
|
30
38
|
#
|
31
39
|
# @param popular -> title of the popular group
|
32
40
|
# @param available -> title of the available group
|
33
|
-
# @example
|
41
|
+
# @example grouped_select_language(popular: 'Popular', available: 'Available')
|
34
42
|
# @return Hash
|
35
|
-
def
|
43
|
+
def grouped_select_language(popular: 'Popular', available: 'Available')
|
36
44
|
{
|
37
45
|
popular => popular_languages,
|
38
46
|
available => available_languages.map { |lang| [language_name(lang), lang] }
|
39
47
|
}
|
40
48
|
end
|
41
49
|
|
42
|
-
|
43
50
|
# It returns HTML element with country icon and title
|
44
51
|
#
|
45
52
|
# @param code -> language locale
|
46
53
|
# @example language_icon('el')
|
47
54
|
# @return String
|
48
|
-
def language_icon(code)
|
49
|
-
"<span class='flag-icon flag-icon-#{language_flag(code)}' title='
|
55
|
+
def language_icon(code, title: "Audio language - #{language_name(code)}")
|
56
|
+
"<span class='flag-icon flag-icon-#{language_flag(code)}' title='#{title}'></span>"
|
50
57
|
end
|
51
58
|
|
52
|
-
# It returns HTML element with country icon
|
59
|
+
# It returns HTML element with country icon and title
|
53
60
|
#
|
54
61
|
# @param code -> country iso code
|
55
|
-
# @example
|
62
|
+
# @example country_icon('gr')
|
56
63
|
# @return String
|
57
|
-
def
|
58
|
-
"<span class='flag-icon flag-icon-#{code}' title='
|
64
|
+
def country_icon(code, title: "Available in #{country_name(code)}")
|
65
|
+
"<span class='flag-icon flag-icon-#{code}' title='#{title}'></span>"
|
59
66
|
end
|
60
67
|
|
61
68
|
# Define in your application_helper to override the popular languages
|
@@ -86,8 +93,9 @@ module FlagIcon
|
|
86
93
|
module_function :country_name
|
87
94
|
module_function :language_flag
|
88
95
|
module_function :select_language
|
96
|
+
module_function :grouped_select_language
|
89
97
|
module_function :language_icon
|
90
|
-
module_function :
|
98
|
+
module_function :country_icon
|
91
99
|
module_function :popular_languages
|
92
100
|
module_function :available_languages
|
93
101
|
end
|
@@ -0,0 +1,109 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="225" height="150" version="1.1" id="svg36" sodipodi:docname="Alaska.svg" inkscape:version="0.92.3 (2405546, 2018-03-11)">
|
3
|
+
<metadata id="metadata40">
|
4
|
+
<rdf:RDF>
|
5
|
+
<cc:Work rdf:about="">
|
6
|
+
<dc:format>image/svg+xml</dc:format>
|
7
|
+
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
8
|
+
<dc:title>Flag of Alaska</dc:title>
|
9
|
+
</cc:Work>
|
10
|
+
</rdf:RDF>
|
11
|
+
</metadata>
|
12
|
+
<sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="1920" inkscape:window-height="1015" id="namedview38" showgrid="false" inkscape:zoom="0.39124294" inkscape:cx="152.32568" inkscape:cy="103.21031" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="svg36"/>
|
13
|
+
<title id="title2">Flag of Alaska</title>
|
14
|
+
<defs id="defs17">
|
15
|
+
<g id="star5" style="fill:#ffb612">
|
16
|
+
<g id="cone">
|
17
|
+
<polygon id="triangle" points="0.5,1 0,0 0,1 " transform="rotate(18,3.1568758,-0.5)"/>
|
18
|
+
<use xlink:href="#triangle" transform="scale(-1,1)" id="use5" x="0" y="0" width="100%" height="100%"/>
|
19
|
+
</g>
|
20
|
+
<use xlink:href="#cone" transform="rotate(72)" id="use8" x="0" y="0" width="100%" height="100%"/>
|
21
|
+
<use xlink:href="#cone" transform="rotate(-72)" id="use10" x="0" y="0" width="100%" height="100%"/>
|
22
|
+
<use xlink:href="#cone" transform="rotate(144)" id="use12" x="0" y="0" width="100%" height="100%"/>
|
23
|
+
<use xlink:href="#cone" transform="rotate(-144)" id="use14" x="0" y="0" width="100%" height="100%"/>
|
24
|
+
</g>
|
25
|
+
</defs>
|
26
|
+
<g id="g3954" transform="translate(6.3000031,-850)">
|
27
|
+
<rect style="fill:#0f204b;stroke-width:0.15438506" y="850" x="-6.3000031" id="rect19" height="150" width="225"/>
|
28
|
+
<g transform="matrix(7.8,0,0,7.8,173.7,877.3)" style="fill:#ffb612" id="use21">
|
29
|
+
<g id="g174">
|
30
|
+
<polygon id="polygon170" points="0.5,1 0,0 0,1 " transform="rotate(18,3.1568758,-0.5)"/>
|
31
|
+
<use height="100%" width="100%" y="0" x="0" xlink:href="#triangle" transform="scale(-1,1)" id="use172"/>
|
32
|
+
</g>
|
33
|
+
<use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(72)" id="use176"/>
|
34
|
+
<use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(-72)" id="use178"/>
|
35
|
+
<use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(144)" id="use180"/>
|
36
|
+
<use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(-144)" id="use182"/>
|
37
|
+
</g>
|
38
|
+
<g transform="matrix(4.65,0,0,4.65,34.35,909.4)" style="fill:#ffb612" id="star">
|
39
|
+
<g id="g46">
|
40
|
+
<polygon id="polygon42" points="0.5,1 0,0 0,1 " transform="rotate(18,3.1568758,-0.5)"/>
|
41
|
+
<use height="100%" width="100%" y="0" x="0" xlink:href="#triangle" transform="scale(-1,1)" id="use44"/>
|
42
|
+
</g>
|
43
|
+
<use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(72)" id="use48"/>
|
44
|
+
<use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(-72)" id="use50"/>
|
45
|
+
<use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(144)" id="use52"/>
|
46
|
+
<use height="100%" width="100%" y="0" x="0" xlink:href="#cone" transform="rotate(-144)" id="use54"/>
|
47
|
+
</g>
|
48
|
+
<g id="use24" style="fill:#ffb612" transform="matrix(4.65,0,0,4.65,59.4,918.7)">
|
49
|
+
<g id="g62">
|
50
|
+
<polygon transform="rotate(18,3.1568758,-0.5)" points="0,1 0.5,1 0,0 " id="polygon58"/>
|
51
|
+
<use id="use60" transform="scale(-1,1)" xlink:href="#triangle" x="0" y="0" width="100%" height="100%"/>
|
52
|
+
</g>
|
53
|
+
<use id="use64" transform="rotate(72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
54
|
+
<use id="use66" transform="rotate(-72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
55
|
+
<use id="use68" transform="rotate(144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
56
|
+
<use id="use70" transform="rotate(-144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
57
|
+
</g>
|
58
|
+
<g id="use26" style="fill:#ffb612" transform="matrix(4.65,0,0,4.65,71.85,932.05)">
|
59
|
+
<g id="g78">
|
60
|
+
<polygon transform="rotate(18,3.1568758,-0.5)" points="0,1 0.5,1 0,0 " id="polygon74"/>
|
61
|
+
<use id="use76" transform="scale(-1,1)" xlink:href="#triangle" x="0" y="0" width="100%" height="100%"/>
|
62
|
+
</g>
|
63
|
+
<use id="use80" transform="rotate(72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
64
|
+
<use id="use82" transform="rotate(-72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
65
|
+
<use id="use84" transform="rotate(144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
66
|
+
<use id="use86" transform="rotate(-144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
67
|
+
</g>
|
68
|
+
<g id="use28" style="fill:#ffb612" transform="matrix(4.65,0,0,4.65,84.45,946)">
|
69
|
+
<g id="g94">
|
70
|
+
<polygon transform="rotate(18,3.1568758,-0.5)" points="0,1 0.5,1 0,0 " id="polygon90"/>
|
71
|
+
<use id="use92" transform="scale(-1,1)" xlink:href="#triangle" x="0" y="0" width="100%" height="100%"/>
|
72
|
+
</g>
|
73
|
+
<use id="use96" transform="rotate(72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
74
|
+
<use id="use98" transform="rotate(-72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
75
|
+
<use id="use100" transform="rotate(144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
76
|
+
<use id="use102" transform="rotate(-144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
77
|
+
</g>
|
78
|
+
<g id="use30" style="fill:#ffb612" transform="matrix(4.65,0,0,4.65,121.95,959.35)">
|
79
|
+
<g id="g110">
|
80
|
+
<polygon transform="rotate(18,3.1568758,-0.5)" points="0,1 0.5,1 0,0 " id="polygon106"/>
|
81
|
+
<use id="use108" transform="scale(-1,1)" xlink:href="#triangle" x="0" y="0" width="100%" height="100%"/>
|
82
|
+
</g>
|
83
|
+
<use id="use112" transform="rotate(72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
84
|
+
<use id="use114" transform="rotate(-72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
85
|
+
<use id="use116" transform="rotate(144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
86
|
+
<use id="use118" transform="rotate(-144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
87
|
+
</g>
|
88
|
+
<g id="use32" style="fill:#ffb612" transform="matrix(4.65,0,0,4.65,82.8,965.65)">
|
89
|
+
<g id="g126">
|
90
|
+
<polygon transform="rotate(18,3.1568758,-0.5)" points="0,1 0.5,1 0,0 " id="polygon122"/>
|
91
|
+
<use id="use124" transform="scale(-1,1)" xlink:href="#triangle" x="0" y="0" width="100%" height="100%"/>
|
92
|
+
</g>
|
93
|
+
<use id="use128" transform="rotate(72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
94
|
+
<use id="use130" transform="rotate(-72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
95
|
+
<use id="use132" transform="rotate(144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
96
|
+
<use id="use134" transform="rotate(-144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
97
|
+
</g>
|
98
|
+
<g id="use34" style="fill:#ffb612" transform="matrix(4.65,0,0,4.65,111,974.95)">
|
99
|
+
<g id="g142">
|
100
|
+
<polygon transform="rotate(18,3.1568758,-0.5)" points="0,1 0.5,1 0,0 " id="polygon138"/>
|
101
|
+
<use id="use140" transform="scale(-1,1)" xlink:href="#triangle" x="0" y="0" width="100%" height="100%"/>
|
102
|
+
</g>
|
103
|
+
<use id="use144" transform="rotate(72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
104
|
+
<use id="use146" transform="rotate(-72)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
105
|
+
<use id="use148" transform="rotate(144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
106
|
+
<use id="use150" transform="rotate(-144)" xlink:href="#cone" x="0" y="0" width="100%" height="100%"/>
|
107
|
+
</g>
|
108
|
+
</g>
|
109
|
+
</svg>
|
@@ -4,8 +4,9 @@
|
|
4
4
|
}
|
5
5
|
} @else {
|
6
6
|
@include flag-icon(ad);
|
7
|
+
@include flag-icon(ak);
|
7
8
|
@include flag-icon(ae);
|
8
|
-
@include flag-icon(ab);
|
9
|
+
@include flag-icon(ab);
|
9
10
|
@include flag-icon(af);
|
10
11
|
@include flag-icon(ag);
|
11
12
|
@include flag-icon(ai);
|
@@ -112,7 +113,6 @@
|
|
112
113
|
@include flag-icon(il);
|
113
114
|
@include flag-icon(im);
|
114
115
|
@include flag-icon(in);
|
115
|
-
@include flag-icon(hi); // from in
|
116
116
|
@include flag-icon(io);
|
117
117
|
@include flag-icon(iq);
|
118
118
|
@include flag-icon(ir);
|
@@ -122,7 +122,6 @@
|
|
122
122
|
@include flag-icon(jm);
|
123
123
|
@include flag-icon(jo);
|
124
124
|
@include flag-icon(jp);
|
125
|
-
@include flag-icon(ja); // from jp
|
126
125
|
@include flag-icon(ke);
|
127
126
|
@include flag-icon(kg);
|
128
127
|
@include flag-icon(kh);
|
@@ -269,6 +268,7 @@
|
|
269
268
|
@include flag-icon(ea);
|
270
269
|
@include flag-icon(es-ct);
|
271
270
|
@include flag-icon(es-ga);
|
271
|
+
@include flag-icon(es-eu);
|
272
272
|
@include flag-icon(eu);
|
273
273
|
@include flag-icon(gb-eng);
|
274
274
|
@include flag-icon(gb-nir);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flag_icon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alexwebgr
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- vendor/assets/images/flags/4x3/af.svg
|
101
101
|
- vendor/assets/images/flags/4x3/ag.svg
|
102
102
|
- vendor/assets/images/flags/4x3/ai.svg
|
103
|
+
- vendor/assets/images/flags/4x3/ak.svg
|
103
104
|
- vendor/assets/images/flags/4x3/al.svg
|
104
105
|
- vendor/assets/images/flags/4x3/am.svg
|
105
106
|
- vendor/assets/images/flags/4x3/ao.svg
|
@@ -201,7 +202,6 @@ files:
|
|
201
202
|
- vendor/assets/images/flags/4x3/gu.svg
|
202
203
|
- vendor/assets/images/flags/4x3/gw.svg
|
203
204
|
- vendor/assets/images/flags/4x3/gy.svg
|
204
|
-
- vendor/assets/images/flags/4x3/hi.svg
|
205
205
|
- vendor/assets/images/flags/4x3/hk.svg
|
206
206
|
- vendor/assets/images/flags/4x3/hm.svg
|
207
207
|
- vendor/assets/images/flags/4x3/hn.svg
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="flag-icons-in" viewBox="0 0 640 480">
|
2
|
-
<path fill="#f93" d="M0 0h640v160H0z"/>
|
3
|
-
<path fill="#fff" d="M0 160h640v160H0z"/>
|
4
|
-
<path fill="#128807" d="M0 320h640v160H0z"/>
|
5
|
-
<g transform="matrix(3.2 0 0 3.2 320 240)">
|
6
|
-
<circle r="20" fill="#008"/>
|
7
|
-
<circle r="17.5" fill="#fff"/>
|
8
|
-
<circle r="3.5" fill="#008"/>
|
9
|
-
<g id="d">
|
10
|
-
<g id="c">
|
11
|
-
<g id="b">
|
12
|
-
<g id="a" fill="#008">
|
13
|
-
<circle r=".9" transform="rotate(7.5 -8.8 133.5)"/>
|
14
|
-
<path d="M0 17.5.6 7 0 2l-.6 5L0 17.5z"/>
|
15
|
-
</g>
|
16
|
-
<use xlink:href="#a" width="100%" height="100%" transform="rotate(15)"/>
|
17
|
-
</g>
|
18
|
-
<use xlink:href="#b" width="100%" height="100%" transform="rotate(30)"/>
|
19
|
-
</g>
|
20
|
-
<use xlink:href="#c" width="100%" height="100%" transform="rotate(60)"/>
|
21
|
-
</g>
|
22
|
-
<use xlink:href="#d" width="100%" height="100%" transform="rotate(120)"/>
|
23
|
-
<use xlink:href="#d" width="100%" height="100%" transform="rotate(-120)"/>
|
24
|
-
</g>
|
25
|
-
</svg>
|