feat(mobile): added more translations (#1805)

This commit is contained in:
Michel Heusschen 2023-02-20 18:22:35 +01:00 committed by GitHub
parent 9bfb4dfd06
commit e408e8ca4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 60 additions and 31 deletions

View file

@ -102,7 +102,7 @@ class HomePage extends HookConsumerWidget {
void onFavoriteAssets() {
final remoteAssets = remoteOnlySelection(
localErrorMessage: 'Can not favorite local assets yet, skipping',
localErrorMessage: 'home_page_favorite_err_local'.tr(),
);
if (remoteAssets.isNotEmpty) {
ref.watch(favoriteProvider.notifier).addToFavorites(remoteAssets);
@ -125,7 +125,7 @@ class HomePage extends HookConsumerWidget {
void onAddToAlbum(Album album) async {
final Iterable<Asset> assets = remoteOnlySelection(
localErrorMessage: "Can not add local assets to albums yet, skipping",
localErrorMessage: "home_page_add_to_album_err_local".tr(),
);
if (assets.isEmpty) {
return;
@ -166,7 +166,7 @@ class HomePage extends HookConsumerWidget {
void onCreateNewAlbum() async {
final Iterable<Asset> assets = remoteOnlySelection(
localErrorMessage: "Can not add local assets to albums yet, skipping",
localErrorMessage: "home_page_add_to_album_err_local".tr(),
);
if (assets.isEmpty) {
return;