From b2175713253bf347bf2b7b90fedd3c69d94be35a Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Thu, 28 Apr 2022 14:51:34 +0100 Subject: [PATCH] chore: translations for role page --- external/lang | 2 +- src/pages/settings/server/Roles.tsx | 36 ++++++++++++++++++++--------- 2 files changed, 26 insertions(+), 12 deletions(-) diff --git a/external/lang b/external/lang index 8d5bcf4d..039fabd2 160000 --- a/external/lang +++ b/external/lang @@ -1 +1 @@ -Subproject commit 8d5bcf4da63bcdf240de1f3af755603429036e77 +Subproject commit 039fabd2a9663456ad28a7c456fd55bc3fd153e5 diff --git a/src/pages/settings/server/Roles.tsx b/src/pages/settings/server/Roles.tsx index 92bef660..1f177340 100644 --- a/src/pages/settings/server/Roles.tsx +++ b/src/pages/settings/server/Roles.tsx @@ -2,6 +2,7 @@ import isEqual from "lodash.isequal"; import { observer } from "mobx-react-lite"; import { Server } from "revolt.js"; +import { Text } from "preact-i18n"; import { useMemo, useState } from "preact/hooks"; import { useIntermediate } from "../../../context/intermediate/Intermediate"; @@ -109,7 +110,12 @@ export const Roles = observer(({ server }: Props) => { return (
-

Edit {currentRole.name}

+

+ +


{selected !== "default" && ( <>
- Role Name + + +

{

- Role Colour +

{

- Role Options +

{ onChange={(hoist) => setValue({ ...value, hoist }) } - description="Display this role above others."> - Hoist Role + description={ + + }> +

- Role Ranking +

{

)} -

Edit Permissions

+

+ +

@@ -206,12 +218,14 @@ export const Roles = observer(({ server }: Props) => { {selected !== "default" && ( <>
-

Danger Zone

+

+ +

)}