add i18n for console logs
This commit is contained in:
parent
b170a532f6
commit
7752585488
14 changed files with 77 additions and 31 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue