Skip to content

Commit

Permalink
Update translation_service.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
BastienBoymond authored Feb 18, 2024
1 parent 40ceed4 commit d26ad6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/services/translation_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export 'translation_service.dart';
Future<String> translateText(String textToTranslate) async {
final prefs = await SharedPreferences.getInstance();
final apiUrl =
'https://translation.googleapis.com/language/translate/v2/?key=AIzaSyB9_Z-o83Ylc_hUApIhr1BctN7NFaeA5Vg';
'YOUR KEY';
final targetTranslateCode = prefs.getString('languageCode') ?? 'en';
final response = await http.post(
Uri.parse(apiUrl),
Expand Down

0 comments on commit d26ad6d

Please sign in to comment.