From d0ef78020aa1e7778565f12f908b4caac2582580 Mon Sep 17 00:00:00 2001 From: William Oldham Date: Thu, 4 Jan 2024 20:44:11 +0000 Subject: [PATCH] Add Galician Flag --- public/flags/galicia.svg | 199 ++++++++++++++++++++++++++++++++++++ src/components/FlagIcon.tsx | 8 ++ src/utils/language.ts | 1 - 3 files changed, 207 insertions(+), 1 deletion(-) create mode 100644 public/flags/galicia.svg 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