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