refactor(webui): extract i18n strings

This commit is contained in:
Gauthier Roebroeck 2021-07-08 15:56:03 +08:00
parent 68a9f7a79c
commit 58a67f50cc
2 changed files with 16 additions and 6 deletions

View file

@ -28,17 +28,17 @@
<confirmation-dialog
v-model="confirmAnalyzeModal"
title="Analyze library"
body="Analyzes all the media files in the library. The analysis captures information about the media. Depending on your library size, this may take a long time."
button-confirm="Analyze"
:title="$t('dialog.analyze_library.title')"
:body="$t('dialog.analyze_library.body')"
:button-confirm="$t('dialog.analyze_library.button_confirm')"
@confirm="analyze"
/>
<confirmation-dialog
v-model="confirmRefreshMetadataModal"
title="Refresh metadata for library"
body="Refreshes metadata for all the media files in the library. Depending on your library size, this may take a long time."
button-confirm="Refresh"
:title="$t('dialog.refresh_library_metadata.title')"
:body="$t('dialog.refresh_library_metadata.body')"
:button-confirm="$t('dialog.refresh_library_metadata.button_confirm')"
@confirm="refreshMetadata"
/>
</div>

View file

@ -253,6 +253,11 @@
"field_role_page_streaming": "Page Streaming",
"label_roles": "Roles"
},
"analyze_library": {
"body": "Analyzes all the media files in the library. The analysis captures information about the media. Depending on your library size, this may take a long time.",
"button_confirm": "Analyze",
"title": "Analyze library"
},
"delete_collection": {
"button_confirm": "Delete",
"confirm_delete": "Yes, delete the collection \"{name}\"",
@ -408,6 +413,11 @@
"field_repeat_password": "Repeat new password",
"field_repeat_password_error": "Passwords must be identical."
},
"refresh_library_metadata": {
"body": "Refreshes metadata for all the media files in the library. Depending on your library size, this may take a long time.",
"button_confirm": "Refresh",
"title": "Refresh metadata for library"
},
"series_picker": {
"label_search_series": "Search Series",
"title": "Select Series"