diff --git a/public/flags/galicia.svg b/public/flags/galicia.svg new file mode 100644 index 00000000..2eb27952 --- /dev/null +++ b/public/flags/galicia.svg @@ -0,0 +1,199 @@ + + + + + +image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/FlagIcon.tsx b/src/components/FlagIcon.tsx index 4adb8b46..5546aaad 100644 --- a/src/components/FlagIcon.tsx +++ b/src/components/FlagIcon.tsx @@ -37,6 +37,14 @@ export function FlagIcon(props: FlagIconProps) { ); + // Galicia - Not a country (Is a region of Spain) so have to add the flag manually + if (props.langCode === "gl-ES") + return ( +
+ +
+ ); + let backgroundClass = "bg-video-context-flagBg"; if (countryCode === "np") backgroundClass = "bg-white"; diff --git a/src/utils/language.ts b/src/utils/language.ts index ad784c20..5f05113c 100644 --- a/src/utils/language.ts +++ b/src/utils/language.ts @@ -18,7 +18,6 @@ const countryPriority: Record = { zh: "cn", ko: "kr", ta: "lk", - gl: "es", }; // list of iso639_1 Alpha-2 codes used as default languages