mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(mobile): added more translations (#1805)
This commit is contained in:
parent
9bfb4dfd06
commit
e408e8ca4a
8 changed files with 60 additions and 31 deletions
|
|
@ -43,7 +43,7 @@ class ControlBottomAppBar extends ConsumerWidget {
|
|||
),
|
||||
ControlBoxButton(
|
||||
iconData: Icons.star_rounded,
|
||||
label: "Favorite",
|
||||
label: "control_bottom_app_bar_favorite".tr(),
|
||||
onPressed: () {
|
||||
onFavorite();
|
||||
},
|
||||
|
|
@ -140,7 +140,7 @@ class AddToAlbumTitleRow extends StatelessWidget {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
const Text(
|
||||
"control_bottom_app_bar_add_to_album",
|
||||
"common_add_to_album",
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
|
@ -150,7 +150,7 @@ class AddToAlbumTitleRow extends StatelessWidget {
|
|||
onPressed: onCreateNewAlbum,
|
||||
icon: const Icon(Icons.add),
|
||||
label: Text(
|
||||
"control_bottom_app_bar_create_new_album",
|
||||
"common_create_new_album",
|
||||
style: TextStyle(
|
||||
color: Theme.of(context).primaryColor,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ class ServerInfoBox extends HookConsumerWidget {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
"App Version",
|
||||
"server_info_box_app_version".tr(),
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
color: Colors.grey[500],
|
||||
|
|
@ -98,7 +98,7 @@ class ServerInfoBox extends HookConsumerWidget {
|
|||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: [
|
||||
Text(
|
||||
"Server Version",
|
||||
"server_info_box_server_version".tr(),
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
color: Colors.grey[500],
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue