From 4e7a96c5a831882463802cdd4f84fe1464969cb0 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 23 Mar 2022 12:29:43 +0100 Subject: refactor: use formatjs swc plugin I'm not able to configure SWC plugins in Next.js so to make it works, all translation must have an id. --- src/components/Icons/Moon/Moon.tsx | 1 + src/components/Icons/Sun/Sun.tsx | 1 + 2 files changed, 2 insertions(+) (limited to 'src/components/Icons') diff --git a/src/components/Icons/Moon/Moon.tsx b/src/components/Icons/Moon/Moon.tsx index acdf6ae..26f56a1 100644 --- a/src/components/Icons/Moon/Moon.tsx +++ b/src/components/Icons/Moon/Moon.tsx @@ -14,6 +14,7 @@ const MoonIcon = () => { {intl.formatMessage({ defaultMessage: 'Dark theme', description: 'Icons: Moon icon (dark theme)', + id: 'ode0YK', })} diff --git a/src/components/Icons/Sun/Sun.tsx b/src/components/Icons/Sun/Sun.tsx index 44945c2..12f47d3 100644 --- a/src/components/Icons/Sun/Sun.tsx +++ b/src/components/Icons/Sun/Sun.tsx @@ -14,6 +14,7 @@ const SunIcon = () => { {intl.formatMessage({ defaultMessage: 'Light theme', description: 'Icons: Sun icon (light theme)', + id: 'KeRtm/', })} -- cgit v1.2.3