refactor(client): i18n.locale -> i18n.ts

This commit is contained in:
syuilo
2022-01-28 11:39:49 +09:00
parent 6ebab5f577
commit 57ec04d9ec
74 changed files with 424 additions and 424 deletions

View File

@ -79,13 +79,13 @@ const tick = () => {
month.value = nm + 1;
day.value = nd;
weekDay.value = [
i18n.locale._weekday.sunday,
i18n.locale._weekday.monday,
i18n.locale._weekday.tuesday,
i18n.locale._weekday.wednesday,
i18n.locale._weekday.thursday,
i18n.locale._weekday.friday,
i18n.locale._weekday.saturday
i18n.ts._weekday.sunday,
i18n.ts._weekday.monday,
i18n.ts._weekday.tuesday,
i18n.ts._weekday.wednesday,
i18n.ts._weekday.thursday,
i18n.ts._weekday.friday,
i18n.ts._weekday.saturday
][now.getDay()];
const dayNumer = now.getTime() - new Date(ny, nm, nd).getTime();

View File

@ -101,19 +101,19 @@ const choose = async (ev) => {
}
}));
os.popupMenu([{
text: i18n.locale._timelines.home,
text: i18n.ts._timelines.home,
icon: 'fas fa-home',
action: () => { setSrc('home') }
}, {
text: i18n.locale._timelines.local,
text: i18n.ts._timelines.local,
icon: 'fas fa-comments',
action: () => { setSrc('local') }
}, {
text: i18n.locale._timelines.social,
text: i18n.ts._timelines.social,
icon: 'fas fa-share-alt',
action: () => { setSrc('social') }
}, {
text: i18n.locale._timelines.global,
text: i18n.ts._timelines.global,
icon: 'fas fa-globe',
action: () => { setSrc('global') }
}, antennaItems.length > 0 ? null : undefined, ...antennaItems, listItems.length > 0 ? null : undefined, ...listItems], ev.currentTarget || ev.target).then(() => {