Skip to content

Commit 72aafc5

Browse files
CopilotmarcelocraCodex
authored
fix(language-icon): use correct file from languageicon.org (#57)
* Initial plan * fix(language-icon): use correct file from languageicon.org * fix: use language icon asset in switcher * fix: enlarge language selector icon --------- Co-authored-by: marcelocra <2532492+marcelocra@users.noreply.github.com> Co-authored-by: openai-code-agent[bot] <242516109+Codex@users.noreply.github.com>
1 parent 835dc85 commit 72aafc5

2 files changed

Lines changed: 64 additions & 16 deletions

File tree

www/components/language-switcher.tsx

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"use client";
22

3+
import Image from "next/image";
34
import { useState, useRef, useEffect } from "react";
45
import { useLocale, useTranslations } from "next-intl";
56
import { locales, localeNames, type Locale } from "@/i18n/config";
@@ -47,22 +48,7 @@ export function LanguageSwitcher() {
4748
aria-expanded={isOpen}
4849
aria-haspopup="listbox"
4950
>
50-
{/*
51-
Official Language Icon from languageicon.org
52-
Design: Two overlapping speech bubbles representing multilingual communication
53-
Source: https://languageicon.org/
54-
*/}
55-
<svg className="w-5 h-5" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
56-
{/* Back speech bubble (filled) */}
57-
<path d="M15 20 L55 20 L55 55 L35 55 L25 70 L25 55 L15 55 Z" fill="currentColor" />
58-
{/* Front speech bubble (outlined/white fill) */}
59-
<path
60-
d="M45 35 L85 35 L85 70 L75 70 L75 85 L65 70 L45 70 Z"
61-
fill="none"
62-
stroke="currentColor"
63-
strokeWidth="4"
64-
/>
65-
</svg>
51+
<Image src="/language-icon.svg" alt="" aria-hidden width={24} height={24} className="w-6 h-6" />
6652
<span className="text-sm font-medium hidden sm:inline">{currentLocale === "en" ? "EN" : "PT"}</span>
6753
{/* Dropdown arrow */}
6854
<svg

www/public/language-icon.svg

Lines changed: 62 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)