Skip to content

Commit

Permalink
fix(web): missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
michelheusschen committed Jun 20, 2024
1 parent 79a8ab7 commit 4f989ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/src/lib/components/forms/create-user-form.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<label class="flex items-center gap-2 immich-form-label" for="quotaSize">
{$t('admin.quota_size_gib')}
{#if quotaSizeWarning}
<p class="text-red-400 text-sm">{$t('admin.quota_higher_than_disk_size')}</p>
<p class="text-red-400 text-sm">{$t('errors.quota_higher_than_disk_size')}</p>
{/if}
</label>
<input class="immich-form-input" id="quotaSize" type="number" min="0" bind:value={quotaSize} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<div class="mt-8 flex w-full gap-4">
{#if isDuplicate}
<p class="text-red-500 text-sm">{$t('admin.import_path_already_exists')}</p>
<p class="text-red-500 text-sm">{$t('errors.import_path_already_exists')}</p>
{/if}
</div>
</form>
Expand Down
7 changes: 5 additions & 2 deletions web/src/lib/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"authentication_settings_description": "Manage password, OAuth, and other authentication settings",
"background_task_job": "Background Tasks",
"check_all": "Check All",
"cleared_jobs": "Cleared jobs for: {job}",
"config_set_by_file": "Config is currently set by a config file",
"confirm_delete_library": "Are you sure you want to delete {library} library?",
"confirm_delete_library_assets": "Are you sure you want to delete this library? This will delete all {count} contained assets from Immich and cannot be undone. Files will remain on disk.",
Expand All @@ -42,6 +43,7 @@
"face_detection": "Face detection",
"face_detection_description": "Detect the faces in assets using machine learning. For videos, only the thumbnail is considered. \"All\" (re-)processes all assets. \"Missing\" queues assets that haven't been processed yet. Detected faces will be queued for Facial Recognition after Face Detection is complete, grouping them into existing or new people.",
"facial_recognition_job_description": "Group detected faces into people. This step runs after Face Detection is complete. \"All\" (re-)clusters all faces. \"Missing\" queues faces that don't have a person assigned.",
"failed_job_command": "Command {command} failed for job: {job}",
"force_delete_user_warning": "WARNING: This will immediately remove the user and all assets. This cannot be undone and the files cannot be recovered.",
"forcing_refresh_library_files": "Forcing refresh of all library files",
"image_format_description": "WebP produces smaller files than JPEG, but is slower to encode.",
Expand Down Expand Up @@ -451,9 +453,7 @@
"error": "Error",
"error_loading_image": "Error loading image",
"errors": {
"cleared_jobs": "Cleared jobs for: {job}",
"exclusion_pattern_already_exists": "This exclusion pattern already exists.",
"failed_job_command": "Command {command} failed for job: {job}",
"import_path_already_exists": "This import path already exists.",
"paths_validation_failed": "{paths, plural, one {# path} other {# paths}} failed validation",
"quota_higher_than_disk_size": "You set a quota higher than the disk size",
Expand Down Expand Up @@ -616,6 +616,7 @@
"media_type": "Media type",
"memories": "Memories",
"memories_setting_description": "Manage what you see in your memories",
"memory": "Memory",
"menu": "Menu",
"merge": "Merge",
"merge_people": "Merge people",
Expand Down Expand Up @@ -677,6 +678,7 @@
"other_variables": "Other variables",
"owned": "Owned",
"owner": "Owner",
"partner": "Partner",
"partner_can_access": "{partner} can access",
"partner_can_access_assets": "All your photos and videos except those in Archived and Deleted",
"partner_can_access_location": "The location where your photos were taken",
Expand Down Expand Up @@ -704,6 +706,7 @@
"permanently_delete": "Permanently delete",
"permanently_deleted_asset": "Permanently deleted asset",
"permanently_deleted_assets": "Permanently deleted {count, plural, one {# asset} other {# assets}}",
"person": "Person",
"photos": "Photos",
"photos_count": "{count, plural, one {{count, number} Photo} other {{count, number} Photos}}",
"photos_from_previous_years": "Photos from previous years",
Expand Down

0 comments on commit 4f989ee

Please sign in to comment.