finish translations

This commit is contained in:
Snazzah
2021-08-31 15:55:18 +00:00
committed by GitHub
parent 3ad20d6e96
commit d298f877e5
3 changed files with 19 additions and 17 deletions

View File

@@ -8,12 +8,17 @@ interface Props {
username: string;
}
export function TokenRevealModal({ onClose, token,username }: Props) {
export function TokenRevealModal({ onClose, token, username }: Props) {
return (
<Modal
visible={true}
onClose={onClose}
title={`${username}'s Token`}
title={
<Text
id={"app.special.modals.token_reveal"}
fields={{ name: username }}
/>
}
actions={[
{
onClick: onClose,

View File

@@ -39,7 +39,7 @@ export function CreateBotModal({ onClose, onCreate }: Props) {
<Modal
visible={true}
onClose={onClose}
title="Create a new Bot"
title={<Text id="app.special.popovers.create_bot.title" />}
actions={[
{
confirmation: true,
@@ -72,7 +72,7 @@ export function CreateBotModal({ onClose, onCreate }: Props) {
/>
{error && (
<Overline type="error" error={error}>
Failed to create a bot!
<Text id="app.special.popovers.create_bot.error" />
</Overline>
)}
</form>