mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 04:32:32 +00:00
fix(localization): Localize remaining dashboard strings
This commit is contained in:
@@ -141,6 +141,7 @@
|
||||
"dashboard.FutureDays": "Future Days",
|
||||
"dashboard.FutureDaysDescription": "Set the number of days in the future to fetch calendar entries for.",
|
||||
"dashboard.MinimumOfOneDay": "Minimum of 1 Day",
|
||||
"dashboard.Modules": "Modules",
|
||||
"dashboard.Monday": "Monday",
|
||||
"dashboard.NoNewContent": "No New Content",
|
||||
"dashboard.OneMonth": "One Month",
|
||||
|
||||
@@ -10,11 +10,13 @@ class DashboardAppBarSwitchViewAction extends StatelessWidget {
|
||||
builder: (context, view, _) => LunaIconButton(
|
||||
icon: view.icon,
|
||||
onPressed: () {
|
||||
view == CalendarStartingType.CALENDAR
|
||||
? context.read<DashboardState>().calendarStartingType =
|
||||
CalendarStartingType.SCHEDULE
|
||||
: context.read<DashboardState>().calendarStartingType =
|
||||
CalendarStartingType.CALENDAR;
|
||||
if (view == CalendarStartingType.CALENDAR) {
|
||||
context.read<DashboardState>().calendarStartingType =
|
||||
CalendarStartingType.SCHEDULE;
|
||||
} else {
|
||||
context.read<DashboardState>().calendarStartingType =
|
||||
CalendarStartingType.CALENDAR;
|
||||
}
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
@@ -2,14 +2,16 @@ import 'package:flutter/material.dart';
|
||||
import 'package:lunasea/core.dart';
|
||||
|
||||
class DashboardNavigationBar extends StatelessWidget {
|
||||
static List<ScrollController> scrollControllers =
|
||||
List.generate(icons.length, (_) => ScrollController());
|
||||
static List<ScrollController> scrollControllers = List.generate(
|
||||
icons.length,
|
||||
(_) => ScrollController(),
|
||||
);
|
||||
final PageController pageController;
|
||||
|
||||
static const List<String> titles = [
|
||||
'Modules',
|
||||
'Calendar',
|
||||
];
|
||||
static List<String> get titles => [
|
||||
'dashboard.Modules'.tr(),
|
||||
'dashboard.Calendar'.tr(),
|
||||
];
|
||||
|
||||
static const List<IconData> icons = [
|
||||
LunaIcons.modules,
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"dashboard.FutureDays": "Future Days",
|
||||
"dashboard.FutureDaysDescription": "Set the number of days in the future to fetch calendar entries for.",
|
||||
"dashboard.MinimumOfOneDay": "Minimum of 1 Day",
|
||||
"dashboard.Modules": "Modules",
|
||||
"dashboard.Monday": "Monday",
|
||||
"dashboard.NoNewContent": "No New Content",
|
||||
"dashboard.OneMonth": "One Month",
|
||||
|
||||
Reference in New Issue
Block a user