update: use localized strings for social tab

This commit is contained in:
benonymity 2022-11-17 21:31:01 -05:00
parent 12b7976ef3
commit e9389d7ea9
4 changed files with 13 additions and 8 deletions

View file

@ -21,9 +21,9 @@
<div v-if="isGlobalSharing" class="flex items-center py-1"> <div v-if="isGlobalSharing" class="flex items-center py-1">
<ui-toggle-switch v-model="isUserSharing" @input="changeSharingSetting" /> <ui-toggle-switch v-model="isUserSharing" @input="changeSharingSetting" />
<ui-tooltip text="Share your latest listening activity with other users in the social tab"> <ui-tooltip :text="$strings.ShareStatsHelp">
<p class="pl-4"> <p class="pl-4">
Share Listening Activity {{ $strings.ShareStats }}
<span class="material-icons icon-text text-sm">info_outlined</span> <span class="material-icons icon-text text-sm">info_outlined</span>
</p> </p>
</ui-tooltip> </ui-tooltip>

View file

@ -50,9 +50,9 @@
<div class="flex items-center py-2"> <div class="flex items-center py-2">
<ui-toggle-switch v-model="newServerSettings.sharedListeningStats" :disabled="updatingServerSettings" @input="(val) => updateSettingsKey('sharedListeningStats', val)" /> <ui-toggle-switch v-model="newServerSettings.sharedListeningStats" :disabled="updatingServerSettings" @input="(val) => updateSettingsKey('sharedListeningStats', val)" />
<ui-tooltip :text="tooltips.shareStats"> <ui-tooltip :text="$strings.EnableSharedStatsHelp">
<p class="pl-4"> <p class="pl-4">
Shared Listening Stats {{ $strings.EnableSharedStats}}
<span class="material-icons icon-text text-sm">info_outlined</span> <span class="material-icons icon-text text-sm">info_outlined</span>
</p> </p>
</ui-tooltip> </ui-tooltip>

View file

@ -3,11 +3,11 @@
<div v-if="this.listeningStats" class="flex flex-col md:flex-row"> <div v-if="this.listeningStats" class="flex flex-col md:flex-row">
<div class="w-200 my-6 mx-auto"> <div class="w-200 my-6 mx-auto">
<div class="grid grid-cols-2 content-between"> <div class="grid grid-cols-2 content-between">
<h1 class="text-2xl mb-4 font-book">Social</h1> <h1 class="text-2xl mb-4 font-book">{{ $strings.Social }}</h1>
<div class="flex py-1 justify-end"> <div class="flex py-1 justify-end">
<ui-tooltip text="Share your latest listening activity with other users in the social tab"> <ui-tooltip :text="$strings.ShareStatsHelp">
<p class="pl-4"> <p class="pl-4">
Share Listening Activity {{ $strings.ShareStats }}
<span class="material-icons icon-text text-sm">info_outlined</span> <span class="material-icons icon-text text-sm">info_outlined</span>
</p> </p>
</ui-tooltip> </ui-tooltip>

View file

@ -460,6 +460,11 @@
"PlaceholderNewCollection": "New collection name", "PlaceholderNewCollection": "New collection name",
"PlaceholderNewFolderPath": "New folder path", "PlaceholderNewFolderPath": "New folder path",
"PlaceholderSearch": "Search..", "PlaceholderSearch": "Search..",
"EnableSharedStatsHelp": "Allow users to share latest listening activity with other users on an opt-in basis",
"EnableSharedStats": "Shared Listening Stats",
"ShareStatsHelp": "Share your latest listening activity with other users in the social tab",
"ShareStats": "Share Listening Activity",
"Social": "Social",
"ToastAccountUpdateFailed": "Failed to update account", "ToastAccountUpdateFailed": "Failed to update account",
"ToastAccountUpdateSuccess": "Account updated", "ToastAccountUpdateSuccess": "Account updated",
"ToastAuthorImageRemoveFailed": "Failed to remove image", "ToastAuthorImageRemoveFailed": "Failed to remove image",