mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	fix: add missing translations to face editor (#17993)
This commit is contained in:
		
							parent
							
								
									0c261ffbe2
								
							
						
					
					
						commit
						ebad6a008f
					
				@ -1260,6 +1260,7 @@
 | 
				
			|||||||
  "no_favorites_message": "Add favorites to quickly find your best pictures and videos",
 | 
					  "no_favorites_message": "Add favorites to quickly find your best pictures and videos",
 | 
				
			||||||
  "no_libraries_message": "Create an external library to view your photos and videos",
 | 
					  "no_libraries_message": "Create an external library to view your photos and videos",
 | 
				
			||||||
  "no_name": "No Name",
 | 
					  "no_name": "No Name",
 | 
				
			||||||
 | 
					  "no_people_found": "No matching people found",
 | 
				
			||||||
  "no_places": "No places",
 | 
					  "no_places": "No places",
 | 
				
			||||||
  "no_results": "No results",
 | 
					  "no_results": "No results",
 | 
				
			||||||
  "no_results_description": "Try a synonym or more general keyword",
 | 
					  "no_results_description": "Try a synonym or more general keyword",
 | 
				
			||||||
@ -1572,6 +1573,7 @@
 | 
				
			|||||||
  "select_keep_all": "Select keep all",
 | 
					  "select_keep_all": "Select keep all",
 | 
				
			||||||
  "select_library_owner": "Select library owner",
 | 
					  "select_library_owner": "Select library owner",
 | 
				
			||||||
  "select_new_face": "Select new face",
 | 
					  "select_new_face": "Select new face",
 | 
				
			||||||
 | 
					  "select_person_to_tag": "Select a person to tag",
 | 
				
			||||||
  "select_photos": "Select photos",
 | 
					  "select_photos": "Select photos",
 | 
				
			||||||
  "select_trash_all": "Select trash all",
 | 
					  "select_trash_all": "Select trash all",
 | 
				
			||||||
  "select_user_for_sharing_page_err_album": "Failed to create album",
 | 
					  "select_user_for_sharing_page_err_album": "Failed to create album",
 | 
				
			||||||
 | 
				
			|||||||
@ -2,14 +2,15 @@
 | 
				
			|||||||
  import ImageThumbnail from '$lib/components/assets/thumbnail/image-thumbnail.svelte';
 | 
					  import ImageThumbnail from '$lib/components/assets/thumbnail/image-thumbnail.svelte';
 | 
				
			||||||
  import { dialogController } from '$lib/components/shared-components/dialog/dialog';
 | 
					  import { dialogController } from '$lib/components/shared-components/dialog/dialog';
 | 
				
			||||||
  import { notificationController } from '$lib/components/shared-components/notification/notification';
 | 
					  import { notificationController } from '$lib/components/shared-components/notification/notification';
 | 
				
			||||||
 | 
					  import { assetViewingStore } from '$lib/stores/asset-viewing.store';
 | 
				
			||||||
  import { isFaceEditMode } from '$lib/stores/face-edit.svelte';
 | 
					  import { isFaceEditMode } from '$lib/stores/face-edit.svelte';
 | 
				
			||||||
  import { getPeopleThumbnailUrl } from '$lib/utils';
 | 
					  import { getPeopleThumbnailUrl } from '$lib/utils';
 | 
				
			||||||
  import { getAllPeople, createFace, type PersonResponseDto } from '@immich/sdk';
 | 
					  import { handleError } from '$lib/utils/handle-error';
 | 
				
			||||||
 | 
					  import { createFace, getAllPeople, type PersonResponseDto } from '@immich/sdk';
 | 
				
			||||||
  import { Button, Input } from '@immich/ui';
 | 
					  import { Button, Input } from '@immich/ui';
 | 
				
			||||||
  import { Canvas, InteractiveFabricObject, Rect } from 'fabric';
 | 
					  import { Canvas, InteractiveFabricObject, Rect } from 'fabric';
 | 
				
			||||||
  import { onMount } from 'svelte';
 | 
					  import { onMount } from 'svelte';
 | 
				
			||||||
  import { assetViewingStore } from '$lib/stores/asset-viewing.store';
 | 
					  import { t } from 'svelte-i18n';
 | 
				
			||||||
  import { handleError } from '$lib/utils/handle-error';
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  interface Props {
 | 
					  interface Props {
 | 
				
			||||||
    htmlElement: HTMLImageElement | HTMLVideoElement;
 | 
					    htmlElement: HTMLImageElement | HTMLVideoElement;
 | 
				
			||||||
@ -316,7 +317,7 @@
 | 
				
			|||||||
    bind:this={faceSelectorEl}
 | 
					    bind:this={faceSelectorEl}
 | 
				
			||||||
    class="absolute top-[calc(50%-250px)] start-[calc(50%-125px)] max-w-[250px] w-[250px] bg-white dark:bg-immich-dark-gray dark:text-immich-dark-fg backdrop-blur-sm px-2 py-4 rounded-xl border border-gray-200 dark:border-gray-800"
 | 
					    class="absolute top-[calc(50%-250px)] start-[calc(50%-125px)] max-w-[250px] w-[250px] bg-white dark:bg-immich-dark-gray dark:text-immich-dark-fg backdrop-blur-sm px-2 py-4 rounded-xl border border-gray-200 dark:border-gray-800"
 | 
				
			||||||
  >
 | 
					  >
 | 
				
			||||||
    <p class="text-center text-sm">Select a person to tag</p>
 | 
					    <p class="text-center text-sm">{$t('select_person_to_tag')}</p>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <div class="my-3 relative">
 | 
					    <div class="my-3 relative">
 | 
				
			||||||
      <Input placeholder="Search person..." bind:value={searchTerm} size="tiny" />
 | 
					      <Input placeholder="Search person..." bind:value={searchTerm} size="tiny" />
 | 
				
			||||||
@ -348,11 +349,11 @@
 | 
				
			|||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      {:else}
 | 
					      {:else}
 | 
				
			||||||
        <div class="flex items-center justify-center py-4">
 | 
					        <div class="flex items-center justify-center py-4">
 | 
				
			||||||
          <p class="text-sm text-gray-500">No matching people found</p>
 | 
					          <p class="text-sm text-gray-500">{$t('no_people_found')}</p>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
      {/if}
 | 
					      {/if}
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <Button size="small" fullWidth onclick={cancel} color="danger" class="mt-2">Cancel</Button>
 | 
					    <Button size="small" fullWidth onclick={cancel} color="danger" class="mt-2">{$t('cancel')}</Button>
 | 
				
			||||||
  </div>
 | 
					  </div>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user