refactor: deprecate i18n.t

This commit is contained in:
Acid Chicken (硫酸鶏) 2024-01-20 02:11:11 +09:00
parent a637b4e282
commit 7dbf873a2f
No known key found for this signature in database
GPG key ID: 3E87B98A3F6BAB99
84 changed files with 7701 additions and 343 deletions

View file

@ -205,9 +205,7 @@ export async function mainBoot() {
const lastUsedDate = parseInt(lastUsed, 10);
// 二時間以上前なら
if (Date.now() - lastUsedDate > 1000 * 60 * 60 * 2) {
toast(i18n.t('welcomeBackWithName', {
name: $i.name || $i.username,
}));
toast(i18n.tsx.welcomeBackWithName($i.name || $i.username));
}
}
miLocalStorage.setItem('lastUsed', Date.now().toString());