Skip to content

Commit

Permalink
Fix en intl file
Browse files Browse the repository at this point in the history
  • Loading branch information
thePeras committed Jan 6, 2025
1 parent 20512d6 commit a609efd
Show file tree
Hide file tree
Showing 7 changed files with 581 additions and 359 deletions.
9 changes: 4 additions & 5 deletions packages/uni_app/lib/generated/intl/messages_all.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ MessageLookupByLibrary? _findExact(String localeName) {
/// User programs should call this before using [localeName] for messages.
Future<bool> initializeMessages(String localeName) async {
var availableLocale = Intl.verifiedLocale(
localeName,
(locale) => _deferredLibraries[locale] != null,
onFailure: (_) => null);
localeName, (locale) => _deferredLibraries[locale] != null,
onFailure: (_) => null);
if (availableLocale == null) {
return new Future.value(false);
}
Expand All @@ -60,8 +59,8 @@ bool _messagesExistFor(String locale) {
}

MessageLookupByLibrary? _findGeneratedMessagesFor(String locale) {
var actualLocale = Intl.verifiedLocale(locale, _messagesExistFor,
onFailure: (_) => null);
var actualLocale =
Intl.verifiedLocale(locale, _messagesExistFor, onFailure: (_) => null);
if (actualLocale == null) return null;
return _findExact(actualLocale);
}
451 changes: 281 additions & 170 deletions packages/uni_app/lib/generated/intl/messages_en.dart

Large diffs are not rendered by default.

452 changes: 282 additions & 170 deletions packages/uni_app/lib/generated/intl/messages_pt_PT.dart

Large diffs are not rendered by default.

21 changes: 12 additions & 9 deletions packages/uni_app/lib/generated/l10n.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/uni_app/lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
"confirm_logout": "Do you really want to log out? Your local data will be deleted and you will have to log in again.",
"@confirm_logout": {},
"collect_usage_stats": "Collect usage statistics",
"@usage_stats": {},
"@collect_usage_stats": {},
"try_again": "Try again",
"@try_again": {},
"try_different_login": "Having trouble signing in?",
Expand Down
2 changes: 0 additions & 2 deletions packages/uni_app/lib/utils/navbar_items.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import 'package:flutter/material.dart';
import 'package:uni/generated/l10n.dart';
import 'package:uni/utils/navigation_items.dart';
import 'package:uni_ui/icons.dart';

enum NavbarItem {
// TODO(thePeras): Remove duplication
navPersonalArea(
UniIcons.home,
NavigationItem.navPersonalArea,
Expand Down
3 changes: 1 addition & 2 deletions packages/uni_app/lib/view/transports/transports.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ class TransportsPageViewState extends GeneralPageViewState {
];

@override
String? getTitle() =>
S.of(context).nav_title(NavigationItem.navMap.route);
String? getTitle() => S.of(context).nav_title(NavigationItem.navMap.route);

@override
Widget getBody(BuildContext context) {
Expand Down

0 comments on commit a609efd

Please sign in to comment.