add i18n for console logs

This commit is contained in:
ari melody 2025-07-13 20:44:54 +01:00
parent b170a532f6
commit 7752585488
Signed by: ari
GPG key ID: CF99829C92678188
14 changed files with 77 additions and 31 deletions

View file

@ -32,7 +32,7 @@
const placeholders = lang.stringArray('compose_placeholders');
let placeholder = Array.isArray(placeholders) ? placeholders[Math.floor(placeholders.length * Math.random())]
.replaceAll("$1", $account.username) : placeholders;
.replaceAll("%1", $account.username) : placeholders;
const dispatch = createEventDispatcher();

View file

@ -72,7 +72,7 @@
);
if (!res.ok)
console.warn("Token revocation failed! Dumping data anyways");
console.warn(lang.string('logs.token_revoke_failed'));
account.set(false);
app.set(false);

View file

@ -13,7 +13,7 @@
<span class="post-context-icon">🔁</span>
<span class="post-context-action">
{ @html
lang.string('post.boosted').replaceAll('%1',
lang.string('post.boosted',
`<a href={${post.account.url}} target="_blank"><span class="name">${post.account.rich_name}</span></a>`)
}
</span>