AppLocalizations class abstract

Callers can lookup localized strings with an instance of AppLocalizations returned by AppLocalizations.of(context).

Applications need to include AppLocalizations.delegate() in their app's localizationDelegates list, and the locales they support in the app's supportedLocales list. For example:

import 'gen_l10n/app_localizations.dart';

return MaterialApp(
  localizationsDelegates: AppLocalizations.localizationsDelegates,
  supportedLocales: AppLocalizations.supportedLocales,
  home: MyApplicationHome(),
);

Update pubspec.yaml

Please make sure to update your pubspec.yaml to include the following packages:

dependencies:
  # Internationalization support.
  flutter_localizations:
    sdk: flutter
  intl: any # Use the pinned version from flutter_localizations

  # Rest of dependencies

iOS Applications

iOS applications define key application metadata, including supported locales, in an Info.plist file that is built into the application bundle. To configure the locales supported by your app, you’ll need to edit this file.

First, open your project’s ios/Runner.xcworkspace Xcode workspace file. Then, in the Project Navigator, open the Info.plist file under the Runner project’s Runner folder.

Next, select the Information Property List item, select Add Item from the Editor menu, then select Localizations from the pop-up menu.

Select and expand the newly-created Localizations item then, for each locale your application supports, add a new item and select the locale you wish to add from the pop-up menu in the Value field. This list should be consistent with the languages listed in the AppLocalizations.supportedLocales property.

Constructors

AppLocalizations(String locale)

Properties

app_titleBar_pro String
Title bar label for Pro version.
no setter
app_titleBar_trial String
Title bar label for Trial version.
no setter
app_update_aur String
Instruction to update the application via the AUR package manager.
no setter
app_update_web String
Instruction for updating the web version by refreshing the page.
no setter
auth_dataCollectionConsent String
Consent text for data collection and processing.
no setter
auth_dataCollectionConsentSuffix String
Suffix to the consent string
no setter
auth_invalidCredentials String
Error message for invalid login credentials.
no setter
auth_login String
Login button label.
no setter
auth_password String
Label for the password input field.
no setter
auth_privacyPolicy String
Label for the privacy policy link.
no setter
auth_subtitle String
Subtitle guiding users to log in with their Moodle account.
no setter
auth_username String
Label for the username input field.
no setter
calendar_clearPlan String
Button label to clear all tasks from a plan.
no setter
calendar_clearPlan_message String
Confirmation message for clearing a plan.
no setter
calendar_clearPlan_title String
Confirmation title for clearing a plan.
no setter
calendar_invite String
Label for inviting someone to a plan.
no setter
calendar_invited String
Status label indicating that a user has been invited.
no setter
calendar_inviteUsers String
Button label to invite users to join a plan.
no setter
calendar_inYourPlan String
Status label indicating that a plan is part of your schedule.
no setter
calendar_leave String
Button label to leave a plan.
no setter
calendar_leave_message String
Confirmation message for leaving a plan.
no setter
calendar_leave_title String
Confirmation title when attempting to leave a plan.
no setter
calendar_members String
Label for members section in the calendar.
no setter
calendar_plan String
Label for the calendar plan section.
no setter
calendar_removeDeadline String
Button label to remove a task's deadline.
no setter
calendar_searchMembers String
Placeholder or label for searching members within a plan.
no setter
calendar_searchTasks String
Placeholder or label for searching tasks.
no setter
calendar_searchUsers String
Placeholder or label for searching users.
no setter
calendar_tasks String
Label for tasks section in the calendar.
no setter
calendar_tasksOverview String
Label for the overview of tasks in the calendar.
no setter
calendar_tasksOverview_description String
Detailed explanation of what the tasks overview displays.
no setter
calendar_tasksOverview_description_title String
Title for the description of the tasks overview.
no setter
calendar_title String
Title for the calendar view.
no setter
courses_dueDate String
Column header for course due date.
no setter
courses_name String
Column header for course name.
no setter
courses_overview String
Title for the course overview section.
no setter
courses_plannedDueDate String
Column header for planned due date of a course.
no setter
courses_status String
Column header for course status.
no setter
courses_type String
Column header for course type.
no setter
dashboard_burnDownChart String
Title for the burndown chart displayed on the dashboard.
no setter
dashboard_burnDownChart_explanation_message String
Detailed explanation of how the burndown chart works.
no setter
dashboard_burnDownChart_explanation_title String
Title for the explanation of the burndown chart.
no setter
dashboard_burnDownChart_plannedTrajectory String
Label for the planned trajectory line in the burndown chart.
no setter
dashboard_exams String
Section title for upcoming exams on the dashboard.
no setter
dashboard_exams_noExams String
Message displayed when there are no upcoming exams.
no setter
dashboard_noSlotsReservedToday String
Message displayed when there are no slots reserved for today.
no setter
dashboard_noTasksOverdue String
Message displayed when there are no overdue tasks.
no setter
dashboard_overdueTasks String
Section title for overdue tasks on the dashboard.
no setter
dashboard_slotsReservedToday String
Label for the number of reserved slots for today.
no setter
dashboard_statusOverview String
Title for the status overview section on the dashboard.
no setter
dashboard_title String
Title for the dashboard view.
no setter
dashboard_todaysTasks String
Section title for today's tasks on the dashboard.
no setter
dashboard_todaysTasks_noTasks String
Message displayed when no tasks are planned for today.
no setter
enum_taskStatus_done String
Status label indicating that a task is completed.
no setter
enum_taskStatus_late String
Status label indicating that a task is overdue.
no setter
enum_taskStatus_pending String
Status label indicating that a task is pending.
no setter
enum_taskStatus_uploaded String
Status label indicating that a task has been uploaded.
no setter
global_cancel String
Global cancel button label.
no setter
global_close String
Global close button label.
no setter
global_confirm String
Global confirmation button label.
no setter
global_continue String
Global continue button label.
no setter
global_create String
Global create button label.
no setter
global_delete String
Global delete button label.
no setter
global_dismiss String
Global dismiss button label.
no setter
global_edit String
Global edit button label.
no setter
global_loading String
Global loading indicator text.
no setter
global_nA String
Global text for 'Not Available' or 'Not Applicable'.
no setter
global_ok String
Global OK button label.
no setter
Global search label.
no setter
global_update String
Global update button label.
no setter
hashCode int
The hash code for this object.
no setterinherited
localeName String
final
moodle_courseSelectionScreen_selectCourses String
Instruction to select courses on the Moodle course selection screen.
no setter
Placeholder or label for searching courses in Moodle.
no setter
moodle_moodleTaskWidget_openInMoodle String
Button label to open a task directly in Moodle.
no setter
moodle_task_exam String
Label for exam tasks in Moodle.
no setter
moodle_task_optional String
Abbreviation for optional tasks in Moodle (EK).
no setter
moodle_task_participation String
Abbreviation for participation tasks in Moodle (M).
no setter
moodle_task_required String
Abbreviation for required tasks in Moodle (GK).
no setter
notFound String
Error message displayed when the user navigates to a non-existent page.
no setter
notFound_returnHome String
Button label to return to the home page.
no setter
notification_invite_accept String
Button label to accept an invitation.
no setter
notification_invite_accepted String
Status label indicating that an invitation has been accepted.
no setter
notification_invite_decline String
Button label to decline an invitation.
no setter
notification_invite_declined String
Status label indicating that an invitation has been declined.
no setter
notification_list_showAll String
Button or link label to show all notifications.
no setter
notification_list_showUnread String
Button or link label to filter and show unread notifications.
no setter
notification_planRemoved String
Notification informing the user that they have been removed from a shared plan, with a copy saved.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
Consent text for sharing personal details with the developers.
no setter
settings_feedback_consentSuffix String
Suffix to the consent string
no setter
settings_feedback_description String
Description prompting the user to describe their problem in the feedback form.
no setter
settings_feedback_error_message String
Error message displayed when feedback submission fails.
no setter
settings_feedback_error_title String
Title displayed when feedback submission fails.
no setter
settings_feedback_sent_title String
Title displayed after feedback is successfully sent.
no setter
settings_feedback_submit String
Button label to submit feedback.
no setter
settings_feedback_title String
Title for the feedback section.
no setter
settings_feedback_type_bug String
Feedback type option for reporting a bug.
no setter
settings_feedback_type_feature String
Feedback type option for requesting a feature.
no setter
settings_feedback_type_other String
Feedback type option for other types of feedback.
no setter
settings_feedback_type_typo String
Feedback type option for reporting a typo.
no setter
settings_general String
General settings section label.
no setter
settings_general_clearCache String
Button label to clear the application cache.
no setter
settings_general_credits String
Label for the credits section.
no setter
settings_general_deleteProfile String
Button label to delete the user's profile.
no setter
settings_general_displayTaskCount String
Option to toggle the display of the task count.
no setter
settings_general_enableEK String
Option to enable EK modules in settings.
no setter
settings_theme String
Label for theme selection in settings.
no setter
settings_title String
Title for the settings section.
no setter
slots_edit_addSupervisor String
Button label to add a supervisor to a slot.
no setter
slots_edit_courseMappings String
Label for the course mappings section in slot editing.
no setter
slots_edit_createSlot String
Button label to create a new slot.
no setter
slots_edit_editSlot String
Button label to edit a slot.
no setter
slots_edit_endTime String
Label for the end time input in slot editing.
no setter
slots_edit_room String
Label for the room input in slot editing.
no setter
slots_edit_selectClass String
Prompt to select a class for slot mapping.
no setter
slots_edit_selectCourse String
Prompt to select a course for slot mapping.
no setter
slots_edit_size String
Label for the size input in slot editing.
no setter
slots_edit_startTime String
Label for the start time input in slot editing.
no setter
slots_edit_supervisors String
Label for the supervisors section in slot editing.
no setter
slots_edit_weekday String
Label for selecting the weekday in slot editing.
no setter
slots_reserve_error String
Error message displayed when a slot reservation fails.
no setter
slots_slotmaster_deleteSlot_message String
Confirmation message for deleting a slot.
no setter
slots_slotmaster_newSlot String
Button label to create a new slot.
no setter
slots_title String
Title for the slots section.
no setter
slots_weekday_friday String
Label for Friday in slot editing.
no setter
slots_weekday_monday String
Label for Monday in slot editing.
no setter
slots_weekday_saturday String
Label for Saturday in slot editing.
no setter
slots_weekday_sunday String
Label for Sunday in slot editing.
no setter
slots_weekday_thursday String
Label for Thursday in slot editing.
no setter
slots_weekday_tuesday String
Label for Tuesday in slot editing.
no setter
slots_weekday_wednesday String
Label for Wednesday in slot editing.
no setter

Methods

app_update_appImage(String url) String
Prompt to update the application image using the provided download URL.
app_update_download(String url) String
Prompt to download and install the latest version using the provided URL.
auth_accessHint(String appname) String
Access restriction message that uses the app name placeholder.
auth_version(String version) String
Displays the current version of the application with a version placeholder.
calendar_tasksCountLabel(int count) String
Label showing the number of tasks, with pluralization based on count.
dashboard_burnDownChart_idealTrajectory(num count) String
Label for the ideal daily task completion rate in the burndown chart, showing tasks per day.
mobile(String appname) String
Error message displayed when the user tries to access the app on a mobile device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notification_invite(String username) String
Notification message indicating that a user has invited you to join their plan, includes username.
notification_inviteAccepted(String username) String
Notification that a user's invitation has been accepted, includes username.
notification_inviteDeclined(String username) String
Notification that a user's invitation has been declined, includes username.
notification_list_title(int count) String
Title for the notifications list showing the total count of notifications.
notification_newUser(String appname, String username) String
Welcome message for new users, including app name and username placeholders.
notification_planLeft(String username) String
Notification message when a user leaves a shared plan, includes username.
settings_feedback_sent_message(String sentryid) String
Message displayed after successfully sending feedback, includes the feedback ID placeholder.
settings_general_version(String version) String
Displays the current app version in settings, with version placeholder.
slots_details_mappingsCount(int count) String
Displays the number of course mappings for the slot, using a count placeholder.
slots_details_reservationsCount(int reservations, int size) String
Displays the current reservations over the total slot size, with reservations and size placeholders.
slots_details_sizeCount(int count) String
Displays the size of the slot, using a count placeholder.
slots_details_supervisorsCount(int count) String
Displays the number of supervisors assigned to the slot, using a count placeholder.
slots_slotmaster_deleteSlot_title(String room, String startUnit, String endUnit) String
Confirmation title for deleting a slot, including room, start unit, and end unit placeholders.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

of(BuildContext context) AppLocalizations

Constants

delegate → const LocalizationsDelegate<AppLocalizations>
localizationsDelegates → const List<LocalizationsDelegate>
A list of this localizations delegate along with the default localizations delegates.
supportedLocales → const List<Locale>
A list of this localizations delegate's supported locales.