mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -05:00
finish translations
This commit is contained in:
parent
3ad20d6e96
commit
d298f877e5
3 changed files with 19 additions and 17 deletions
|
@ -8,12 +8,17 @@ interface Props {
|
||||||
username: string;
|
username: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function TokenRevealModal({ onClose, token,username }: Props) {
|
export function TokenRevealModal({ onClose, token, username }: Props) {
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
visible={true}
|
visible={true}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
title={`${username}'s Token`}
|
title={
|
||||||
|
<Text
|
||||||
|
id={"app.special.modals.token_reveal"}
|
||||||
|
fields={{ name: username }}
|
||||||
|
/>
|
||||||
|
}
|
||||||
actions={[
|
actions={[
|
||||||
{
|
{
|
||||||
onClick: onClose,
|
onClick: onClose,
|
||||||
|
|
|
@ -39,7 +39,7 @@ export function CreateBotModal({ onClose, onCreate }: Props) {
|
||||||
<Modal
|
<Modal
|
||||||
visible={true}
|
visible={true}
|
||||||
onClose={onClose}
|
onClose={onClose}
|
||||||
title="Create a new Bot"
|
title={<Text id="app.special.popovers.create_bot.title" />}
|
||||||
actions={[
|
actions={[
|
||||||
{
|
{
|
||||||
confirmation: true,
|
confirmation: true,
|
||||||
|
@ -72,7 +72,7 @@ export function CreateBotModal({ onClose, onCreate }: Props) {
|
||||||
/>
|
/>
|
||||||
{error && (
|
{error && (
|
||||||
<Overline type="error" error={error}>
|
<Overline type="error" error={error}>
|
||||||
Failed to create a bot!
|
<Text id="app.special.popovers.create_bot.error" />
|
||||||
</Overline>
|
</Overline>
|
||||||
)}
|
)}
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -203,10 +203,7 @@ function BotCard({ bot, onDelete, onUpdate }: Props) {
|
||||||
|
|
||||||
{!editMode && (
|
{!editMode && (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
content={
|
content={<Text id={`app.settings.pages.bots.${bot.public ? 'public' : 'private'}_bot_tip`} />
|
||||||
bot.public
|
|
||||||
? "Bot is public. Anyone can invite it."
|
|
||||||
: "Bot is private. Only you can invite it."
|
|
||||||
}>
|
}>
|
||||||
{bot.public ? (
|
{bot.public ? (
|
||||||
<Globe size={24} />
|
<Globe size={24} />
|
||||||
|
@ -232,7 +229,7 @@ function BotCard({ bot, onDelete, onUpdate }: Props) {
|
||||||
} else setEditMode(true);
|
} else setEditMode(true);
|
||||||
}}
|
}}
|
||||||
contrast>
|
contrast>
|
||||||
{editMode ? <Text id="app.special.modals.actions.cancel" /> : "Edit"}
|
<Text id={`app.special.modals.actions.${editMode ? 'cancel' : 'edit'}`} />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
{!editMode && (
|
{!editMode && (
|
||||||
|
@ -259,7 +256,7 @@ function BotCard({ bot, onDelete, onUpdate }: Props) {
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
action={<Clipboard size={18} />}>
|
action={<Clipboard size={18} />}>
|
||||||
Token
|
<Text id="app.settings.pages.bots.token" />
|
||||||
</CategoryButton>
|
</CategoryButton>
|
||||||
)}
|
)}
|
||||||
{editMode && (
|
{editMode && (
|
||||||
|
@ -268,12 +265,12 @@ function BotCard({ bot, onDelete, onUpdate }: Props) {
|
||||||
checked={data.public}
|
checked={data.public}
|
||||||
disabled={saving}
|
disabled={saving}
|
||||||
contrast
|
contrast
|
||||||
description="Whether to allow other users to invite this bot."
|
description={<Text id="app.settings.pages.bots.public_bot_desc" />}
|
||||||
onChange={(v) => setData({ ...data, public: v })}>
|
onChange={(v) => setData({ ...data, public: v })}>
|
||||||
Public Bot
|
<Text id="app.settings.pages.bots.public_bot" />
|
||||||
</Checkbox>
|
</Checkbox>
|
||||||
<h3>Interactions URL</h3>
|
<h3><Text id="app.settings.pages.bots.interactions_url" /></h3>
|
||||||
<h5>This field is reserved for the future.</h5>
|
<h5><Text id="app.settings.pages.bots.reserved" /></h5>
|
||||||
<InputBox
|
<InputBox
|
||||||
ref={setInteractionsRef}
|
ref={setInteractionsRef}
|
||||||
value={data.interactions_url}
|
value={data.interactions_url}
|
||||||
|
@ -321,7 +318,7 @@ function BotCard({ bot, onDelete, onUpdate }: Props) {
|
||||||
`${window.origin}/bot/${bot._id}`,
|
`${window.origin}/bot/${bot._id}`,
|
||||||
)
|
)
|
||||||
}>
|
}>
|
||||||
Copy Invite Link
|
<Text id="app.settings.pages.bots.copy_invite" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
accent
|
accent
|
||||||
|
@ -332,7 +329,7 @@ function BotCard({ bot, onDelete, onUpdate }: Props) {
|
||||||
`/bot/${bot._id}`,
|
`/bot/${bot._id}`,
|
||||||
)
|
)
|
||||||
}>
|
}>
|
||||||
Add Bot
|
<Text id="app.settings.pages.bots.add_bot" />
|
||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
@ -364,7 +361,7 @@ export const MyBots = observer(() => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
action="chevron">
|
action="chevron">
|
||||||
Create a Bot
|
<Text id="app.settings.pages.bots.create_bot" />
|
||||||
</CategoryButton>
|
</CategoryButton>
|
||||||
{bots?.map((bot) => {
|
{bots?.map((bot) => {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue