From 893cd6b4cc38061515996e5e371e99cf4fa734b7 Mon Sep 17 00:00:00 2001 From: Ed L Date: Sun, 31 Oct 2021 22:42:40 +0000 Subject: [PATCH] feat(i18n): translate home buttons and server tooltips (#361) --- src/components/common/ServerHeader.tsx | 10 ++++++++-- src/pages/home/Home.tsx | 21 ++++++++++++++------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/components/common/ServerHeader.tsx b/src/components/common/ServerHeader.tsx index 2e4ed067..804f139d 100644 --- a/src/components/common/ServerHeader.tsx +++ b/src/components/common/ServerHeader.tsx @@ -6,6 +6,8 @@ import { ServerPermission } from "revolt.js/dist/api/permissions"; import { Server } from "revolt.js/dist/maps/Servers"; import styled from "styled-components"; +import { Text } from "preact-i18n"; + import Header from "../ui/Header"; import IconButton from "../ui/IconButton"; @@ -31,7 +33,9 @@ export default observer(({ server }: Props) => { background: bannerURL ? `url('${bannerURL}')` : undefined, }}> {server.flags && server.flags & 1 ? ( - + } + placement={"bottom-start"}> { ) : undefined} {server.flags && server.flags & 2 ? ( - + } + placement={"bottom-start"}> }> - Join testers server + {client.servers.get("01F7ZSBSFHQ8TA81725KQCSDDP") ? ( + + ) : ( + + )} }> - Donate to Revolt + }> - Give feedback + }> - Find Servers & Bots + - + }> }> - Settings +