Skip to content

Commit 3dfe096

Browse files
committed
chore: Now supporting localization in redirect routes.
1 parent 12dec5d commit 3dfe096

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

lib/model/backend/authentication/providers/provider.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ mixin OAuthenticationProvider on AuthenticationProvider {
200200
UriBuilder uriBuilder = UriBuilder.prefix(
201201
prefix: backendUrl,
202202
path: '/auth/provider/$id/redirect',
203+
queryParameters: {
204+
'locale': translations.$meta.locale.languageCode,
205+
},
203206
);
204207
if (link) {
205208
User? user = await _ref.read(userProvider.future);

lib/model/backend/request/request.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ class EmailConfirmRequest extends BackendPostRequest<EmailConfirmResponse> {
237237
Object? get jsonBody => {
238238
'email': email,
239239
'verificationCode': verificationCode,
240+
'locale': translations.$meta.locale.languageCode,
240241
};
241242

242243
@override

pubspec.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ dependencies:
1818
sdk: flutter
1919
flutter_localizations:
2020
sdk: flutter
21-
animations: ^2.1.2
21+
animations: ^2.2.0
2222
flutter_riverpod: ^3.3.1
2323
simple_secure_storage: ^0.4.1
2424
jovial_svg: ^1.1.29
2525
mobile_scanner: ^7.2.0
26+
html: ^0.15.6
2627
path_provider: ^2.1.5
2728
shared_preferences: ^2.5.5
2829
uuid: ^4.5.3
@@ -48,16 +49,16 @@ dependencies:
4849
app_links: ^7.0.0
4950
hashlib: ^2.3.4
5051
hashlib_codecs: ^3.1.2
52+
cipherlib: ^0.4.0
5153
scrollable_positioned_list: ^0.3.8
5254
share_plus: ^12.0.2
5355
wakelock_plus: ^1.5.1
5456
file_picker: ^11.0.2
5557
connectivity_plus: ^7.1.1
56-
sentry_flutter: ^9.18.0
57-
forui: ^0.21.1
58+
sentry_flutter: ^9.19.0
59+
forui: ^0.21.3
5860
forui_assets: ^0.21.0
5961
custom_refresh_indicator: ^4.0.1
60-
cipherlib: ^0.1.0
6162
# TODO: Remove Firebase dependencies once migration is finished.
6263
firebase_core: ^4.7.0
6364
firebase_auth: ^6.4.0
@@ -66,7 +67,7 @@ dependencies:
6667

6768
dev_dependencies:
6869
flutter_lints: ^6.0.0
69-
build_runner: ^2.13.1
70+
build_runner: ^2.14.1
7071
drift_dev: ^2.31.0
7172
msix: ^3.16.13
7273
riverpod_lint: ^3.1.3

0 commit comments

Comments
 (0)