refactor(locales): move logs and activity translation keys under settings

This commit is contained in:
Cameron Clark 2021-01-12 19:42:37 +00:00
parent b634eb7de4
commit 88a28da0df
2 changed files with 35 additions and 6 deletions

View File

@ -142,6 +142,8 @@
"noActivityFound": "No activities found",
"noLogsFound": "No logs found"
},
"manualLogin": "Manual login",
"menu": "Menu",
"metadataEditor": "Metadata editor",
"metadataNoResultsMatching": "No results matching \"{search}\". Press enter to create a new one.",
"more": "More",
@ -226,6 +228,7 @@
},
"settings": "Settings"
},
"serverVersionTooLow": "Server version needs to be 10.7.0 or higher",
"settingsSections": {
"account": {
"description": "Edit your user's information",
@ -299,6 +302,23 @@
"settings": {
"settings": "Settings",
"help": "Help",
"apiKeys": {
"apiKeys": "API keys",
"description": "Add and revoke API keys for external access to your server",
"appName": "App name",
"accessToken": "Access token",
"dateCreated": "Date created",
"revokeSuccess": "Successfully revoked API key",
"revokeFailure": "Error revoking API key",
"revokeAll": "Revoke all API keys",
"revokeAllSuccess": "Successfully revoked all API keys",
"revokeAllFailure": "Error revoking all API keys",
"addNewKey": "Add new API key",
"createKeySuccess": "Successfully created a new API key",
"createKeyFailure": "Error creating a new API key",
"refreshKeysFailure": "Error refreshing API keys",
"addApiKey": "Add an API key"
},
"devices": {
"deleteAll": "Delete all",
"deleteDeviceSuccess": "Device deleted successfully",
@ -312,6 +332,14 @@
"lastActive": "Last active",
"userName": "Username",
"devices": "Devices"
},
"logsAndActivity": {
"activity": "Activity",
"failedGetActivity": "Unable to get activity",
"failedGetLogs": "Unable to get logs",
"logs": "Logs",
"noActivityFound": "No activities found",
"noLogsFound": "No logs found"
}
},
"shows": "Shows",
@ -350,6 +378,7 @@
"validation": {
"bothPasswordsSame": "Both passwords must be the same",
"mustBeUrl": "This field must be a valid URL",
"mustBeUrl": "This field must be a valid URL",
"required": "This field is required"
},
"version": "Version",

View File

@ -4,7 +4,7 @@
<v-col md="6" class="pt-0 pb-4">
<v-fade-transition group>
<h2 key="logs-title" class="text-h6 mb-2">
{{ $t('logsAndActivity.logs') }}
{{ $t('settings.logsAndActivity.logs') }}
</h2>
<v-list
v-if="logFiles && logFiles.length > 0"
@ -40,7 +40,7 @@
key="no-log-card"
>
<v-card-title>
{{ $t('logsAndActivity.noLogsFound') }}
{{ $t('settings.logsAndActivity.noLogsFound') }}
</v-card-title>
</v-card>
<v-card
@ -49,7 +49,7 @@
>
<v-card-title>
<v-icon color="error" class="pr-2">mdi-alert-circle</v-icon>
{{ $t('logsAndActivity.failedGetLogs') }}
{{ $t('settings.logsAndActivity.failedGetLogs') }}
</v-card-title>
<v-card-text v-if="loadingLogsStatus.errorMessage">
{{ loadingLogsStatus.errorMessage }}</v-card-text
@ -60,7 +60,7 @@
<v-col md="6" class="pt-0 pb-4">
<v-fade-transition group>
<h2 key="activity-title" class="text-h6 mb-2">
{{ $t('logsAndActivity.activity') }}
{{ $t('settings.logsAndActivity.activity') }}
</h2>
<v-list
v-if="activityList && activityList.length > 0"
@ -94,7 +94,7 @@
key="no-activity-card"
>
<v-card-title>
{{ $t('logsAndActivity.noActivityFound') }}
{{ $t('settings.logsAndActivity.noActivityFound') }}
</v-card-title>
</v-card>
<v-card
@ -103,7 +103,7 @@
>
<v-card-title>
<v-icon color="error" class="pr-2">mdi-alert-circle</v-icon>
{{ $t('logsAndActivity.failedGetActivity') }}
{{ $t('settings.logsAndActivity.failedGetActivity') }}
</v-card-title>
<v-card-text v-if="loadingActivityStatus.errorMessage">
{{ loadingActivityStatus.errorMessage }}