forked from Shinonome/dots-hyprland
Add translation
This commit is contained in:
@@ -7,6 +7,7 @@ import { setupCursorHover } from '../.widgetutils/cursorhover.js';
|
||||
|
||||
import { TodoWidget } from "./todolist.js";
|
||||
import { getCalendarLayout } from "./calendar_layout.js";
|
||||
import { getString } from '../../i18n/i18n.js';
|
||||
|
||||
let calendarJson = getCalendarLayout(undefined, true);
|
||||
let monthshift = 0;
|
||||
@@ -30,13 +31,13 @@ function getDateInXMonthsTime(x) {
|
||||
}
|
||||
|
||||
const weekDays = [ // MONDAY IS THE FIRST DAY OF THE WEEK :HESRIGHTYOUKNOW:
|
||||
{ day: 'Mo', today: 0 },
|
||||
{ day: 'Tu', today: 0 },
|
||||
{ day: 'We', today: 0 },
|
||||
{ day: 'Th', today: 0 },
|
||||
{ day: 'Fr', today: 0 },
|
||||
{ day: 'Sa', today: 0 },
|
||||
{ day: 'Su', today: 0 },
|
||||
{ day: getString('Mo'), today: 0 },
|
||||
{ day: getString('Tu'), today: 0 },
|
||||
{ day: getString('We'), today: 0 },
|
||||
{ day: getString('Th'), today: 0 },
|
||||
{ day: getString('Fr'), today: 0 },
|
||||
{ day: getString('Sa'), today: 0 },
|
||||
{ day: getString('Su'), today: 0 },
|
||||
]
|
||||
|
||||
const CalendarDay = (day, today) => Widget.Button({
|
||||
@@ -192,8 +193,8 @@ export const ModuleCalendar = () => Box({
|
||||
vertical: true,
|
||||
className: 'sidebar-navrail spacing-v-10',
|
||||
children: [
|
||||
StackButton('calendar', 'calendar_month', 'Calendar'),
|
||||
StackButton('todo', 'done_outline', 'To Do'),
|
||||
StackButton('calendar', 'calendar_month', getString('Calendar')),
|
||||
StackButton('todo', 'done_outline', getString('To Do')),
|
||||
// StackButton(box, 'stars', 'star', 'GitHub'),
|
||||
]
|
||||
}), false, false, 0);
|
||||
|
||||
Reference in New Issue
Block a user