flags fix
This commit is contained in:
parent
5b365c9e17
commit
047608e92a
5
utils.ts
5
utils.ts
|
@ -106,6 +106,7 @@ const languageToFlagMap: Record<string, string> = {
|
|||
};
|
||||
|
||||
export function getFlagEmoji(languageCode?: string): string | undefined {
|
||||
if (!languageCode) return;
|
||||
return languageToFlagMap[languageCode];
|
||||
const language = languageCode?.split("-").pop()?.toLowerCase();
|
||||
if (!language) return;
|
||||
return languageToFlagMap[language];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue