adding i18n to all other pages batch3

This commit is contained in:
Azmat-7860
2026-10-03 12:12:31 +05:30
parent 3fbeb606a8
commit cce6bb2ccb
16 changed files with 2037 additions and 201 deletions
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import '../../l10n/app_localizations.dart';
import '../../providers/token_manager.dart';
import 'Bookmarks_api_service.dart';
@@ -24,7 +25,8 @@ class _CreateEntityScreenState extends State<CreateEntityScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Create Bookmarks')),
appBar: AppBar(
title: Text(AppLocalizations.of(context)!.createBookmarks)),
body: SingleChildScrollView(
child: Padding(
padding: const EdgeInsets.all(16),
@@ -70,11 +72,14 @@ class _CreateEntityScreenState extends State<CreateEntityScreen> {
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: const Text('Error'),
content: Text('Failed to create entity: $e'),
title: Text(AppLocalizations.of(context)!
.error),
content: Text(AppLocalizations.of(context)!
.failedCreateEntity(e.toString())),
actions: [
TextButton(
child: const Text('OK'),
child: Text(AppLocalizations.of(context)!
.ok),
onPressed: () {
Navigator.of(context).pop();
},