refactor(client): i18n.locale -> i18n.ts
This commit is contained in:
@ -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();
|
||||
|
@ -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(() => {
|
||||
|
Reference in New Issue
Block a user