damus.io

damus.io website
git clone git://jb55.com/damus.io
Log | Files | Refs | README | LICENSE

commit 6fb81fae6916d58e856d1f24613bbe130aab4a57
parent 9df1dbfac93f486630c763048d09d1b58a4ab45a
Author: Daniel D’Aquino <daniel@daquino.me>
Date:   Wed,  3 Jan 2024 18:46:05 -0800

Fix compilation error on missing Japanese strings

Diffstat:
Msrc/pages/index.tsx | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/pages/index.tsx b/src/pages/index.tsx @@ -32,10 +32,10 @@ export default function HomePage() { useEffect(() => { switch (language) { case "en": - setMessages(English); + setMessages(English as any); break; case "ja": - setMessages(Japanese); + setMessages(Japanese as any); break; default: setMessages(English); @@ -45,10 +45,10 @@ export default function HomePage() { return (<> <IntlProvider - locale={language} - messages={messages} - onError={() => null}> - <Home/> + locale={language} + messages={messages} + onError={() => null}> + <Home /> </IntlProvider> </>) }