mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-18 00:28:14 +00:00
update tranlation key in account_modal
This commit is contained in:
@@ -157,7 +157,7 @@
|
|||||||
},
|
},
|
||||||
"account_modal": {
|
"account_modal": {
|
||||||
"title": "Account",
|
"title": "Account",
|
||||||
"logged_in_as": "Logged in as {account_name}",
|
"linked_account": "Logged in as {account_name}",
|
||||||
"fetching_account": "Fetching account information...",
|
"fetching_account": "Fetching account information...",
|
||||||
"logged_in_with_discord": "Logged in with Discord",
|
"logged_in_with_discord": "Logged in with Discord",
|
||||||
"recovery_email_sent": "Recovery email sent to {email}",
|
"recovery_email_sent": "Recovery email sent to {email}",
|
||||||
|
|||||||
@@ -113,14 +113,14 @@ export class AccountModal extends LitElement {
|
|||||||
const me = this.userMeResponse?.user;
|
const me = this.userMeResponse?.user;
|
||||||
if (me?.discord) {
|
if (me?.discord) {
|
||||||
return html`<p>
|
return html`<p>
|
||||||
${translateText("account_modal.logged_in_as", {
|
${translateText("account_modal.linked_account", {
|
||||||
account_name: me.discord.global_name ?? "",
|
account_name: me.discord.global_name ?? "",
|
||||||
})}
|
})}
|
||||||
</p>
|
</p>
|
||||||
${this.renderLogoutButton()}`;
|
${this.renderLogoutButton()}`;
|
||||||
} else if (me?.email) {
|
} else if (me?.email) {
|
||||||
return html`<p>
|
return html`<p>
|
||||||
${translateText("account_modal.logged_in_as", {
|
${translateText("account_modal.linked_account", {
|
||||||
account_name: me.email,
|
account_name: me.email,
|
||||||
})}
|
})}
|
||||||
</p>
|
</p>
|
||||||
@@ -368,11 +368,11 @@ export class AccountButton extends LitElement {
|
|||||||
|
|
||||||
let buttonTitle = "";
|
let buttonTitle = "";
|
||||||
if (this.loggedInEmail) {
|
if (this.loggedInEmail) {
|
||||||
buttonTitle = translateText("account_modal.logged_in_as", {
|
buttonTitle = translateText("account_modal.linked_account", {
|
||||||
email: this.loggedInEmail,
|
account_name: this.loggedInEmail,
|
||||||
});
|
});
|
||||||
} else if (this.loggedInDiscord) {
|
} else if (this.loggedInDiscord) {
|
||||||
buttonTitle = translateText("account_modal.logged_in_with_discord");
|
buttonTitle = translateText("account_modal.linked_account");
|
||||||
}
|
}
|
||||||
|
|
||||||
return html`
|
return html`
|
||||||
|
|||||||
Reference in New Issue
Block a user