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 @@
+
+
diff --git a/public/skull.svg b/public/flags/skull.svg
similarity index 100%
rename from public/skull.svg
rename to public/flags/skull.svg
diff --git a/public/tokiPona.svg b/public/flags/tokiPona.svg
similarity index 100%
rename from public/tokiPona.svg
rename to public/flags/tokiPona.svg
diff --git a/src/components/FlagIcon.tsx b/src/components/FlagIcon.tsx
index fbc3dae2..5546aaad 100644
--- a/src/components/FlagIcon.tsx
+++ b/src/components/FlagIcon.tsx
@@ -15,14 +15,14 @@ export function FlagIcon(props: FlagIconProps) {
if (props.langCode === "tok")
return (
-
+
);
if (props.langCode === "pirate")
return (
-
+
);
@@ -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 f9f47250..5f05113c 100644
--- a/src/utils/language.ts
+++ b/src/utils/language.ts
@@ -8,7 +8,7 @@ const languageOrder = ["en", "hi", "fr", "de", "nl", "pt"];
// This mapping purely exists to prioritize a country over another in languages.
// iso639_1 -> iso3166 Alpha-2
const countryPriority: Record = {
- en: "gb",
+ en: "us",
nl: "nl",
fr: "fr",
de: "de",
@@ -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