[fix] Added basic locatlization
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
import '../l10n/app_localizations.dart';
|
||||
import '../model/collection.dart';
|
||||
import '../service/bookmarks_provider.dart';
|
||||
import '../service/shared_link_provider.dart';
|
||||
@@ -88,13 +89,13 @@ class _CollectionsListPageState extends State<CollectionsListPage> {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: addingNewBookmark
|
||||
? Text('Choose Collection')
|
||||
: Text('Collections'),
|
||||
? Text(AppLocalizations.of(context)!.chooseCollection)
|
||||
: Text(AppLocalizations.of(context)!.collections),
|
||||
actions: [
|
||||
if (addingNewBookmark)
|
||||
TextButton(
|
||||
onPressed: () => provider.removeCurrentMapsLink(),
|
||||
child: Text('Cancel'),
|
||||
child: Text(AppLocalizations.of(context)!.cancel),
|
||||
)
|
||||
else
|
||||
IconButton(
|
||||
@@ -116,7 +117,9 @@ class _CollectionsListPageState extends State<CollectionsListPage> {
|
||||
),
|
||||
itemCount: collections.length,
|
||||
)
|
||||
: Center(child: Text('Create your first Collection to get started!')),
|
||||
: Center(
|
||||
child: Text(AppLocalizations.of(context)!.tipCreateCollections),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user