mirror of
				https://github.com/theoludwig/theoludwig.git
				synced 2025-10-14 20:23:25 +02:00 
			
		
		
		
	fix: stop using flag image, use emoji instead
This commit is contained in:
		| @@ -1,7 +1,5 @@ | ||||
| import Image from "next/image" | ||||
|  | ||||
| import type { CookiesStore } from "@/utils/constants" | ||||
| import { useI18n } from "@/i18n/i18n.client" | ||||
| import type { CookiesStore } from "@/utils/constants" | ||||
|  | ||||
| export interface LocaleFlagProps { | ||||
|   locale: string | ||||
| @@ -14,17 +12,8 @@ export const LocaleFlag = (props: LocaleFlagProps): JSX.Element => { | ||||
|   const i18n = useI18n(cookiesStore) | ||||
|  | ||||
|   return ( | ||||
|     <> | ||||
|       <Image | ||||
|         quality={100} | ||||
|         width={35} | ||||
|         height={35} | ||||
|         src={`/images/locales/${locale}.svg`} | ||||
|         alt={locale} | ||||
|       /> | ||||
|       <p data-cy="locale-flag-text" className="mx-2 text-base"> | ||||
|         {i18n.translate(`common.${locale}`)} | ||||
|       </p> | ||||
|     </> | ||||
|     <p data-cy="locale-flag-text" className="mx-2 text-lg font-semibold"> | ||||
|       {i18n.translate(`common.${locale}`)} | ||||
|     </p> | ||||
|   ) | ||||
| } | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|   "en-US": "English", | ||||
|   "fr-FR": "French", | ||||
|   "en-US": "🇺🇸 English", | ||||
|   "fr-FR": "🇫🇷 French", | ||||
|   "all-rights-reserved": "All rights reserved", | ||||
|   "home": "Home" | ||||
| } | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|   "en-US": "Anglais", | ||||
|   "fr-FR": "Français", | ||||
|   "en-US": "🇺🇸 Anglais", | ||||
|   "fr-FR": "🇫🇷 Français", | ||||
|   "all-rights-reserved": "Tous droits réservés", | ||||
|   "home": "Accueil" | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user