Open
Conversation
This commit integrates the `easy_localization` package to support internationalization. Key changes: - Added `easy_localization` dependency to `pubspec.yaml`. - Initialized `EasyLocalization` in `main.dart` with support for English (US) and Portuguese (PT). - Configured `MaterialApp` to use localization delegates, supported locales, and the current locale from `EasyLocalization`. - Added empty translation files for `en-US.json` and `pt-PT.json` in `assets/translations/`. This setup lays the groundwork for localizing the application's UI elements.
This commit introduces internationalization (i18n) to the application using the `easy_localization` package. Key changes include: - Added English (en-US) and Portuguese (pt-PT) translation files. - Integrated `EasyLocalization` into the main application setup, setting Portuguese as the default start locale. - Updated various widgets to use translated strings for UI elements such as button labels, section headers, messages, and tooltips. - Specifically, translated text in `TimerControls`, `TimerPage`, `CurrentSpeaker`, `ComicScreen`, `PeopleSection`, `NavigationControls`, `AddPersonWidget`, `CelebrationScreen`, and `SessionInfo` widgets. - Added a language selection dropdown to `PeopleSection` allowing users to switch between English and Portuguese. - Ensured that dynamic text, such as participant counts and error messages, is correctly formatted with localized strings.
The error message on the comic screen has been updated to be more user-friendly and informative. It now guides users to check their internet connection or try again later if an error occurs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Screencast.From.2025-06-23.10-04-16.mp4
Summary
Introduces full internationalization (i18n) support to the app using the
easy_localizationpackage, enabling dynamic language switching and localized UI content.Key Changes
easy_localizationpackageEasyLocalizationinmain.dartwith support for:assets/translations/TimerPageTimerControlsCurrentSpeakerComicScreenPeopleSectionNavigationControlsAddPersonWidgetCelebrationScreenSessionInfo{count},{entity}) in translation stringsPeopleSectionExample Usage