diff --git a/front/src/views/federation/Base.vue b/front/src/views/federation/Base.vue index 7958bb36b65332b840111cba5ab37c5e2a7962b0..951fe9f0f1c49abe2d43274151008f9d97113439 100644 --- a/front/src/views/federation/Base.vue +++ b/front/src/views/federation/Base.vue @@ -3,16 +3,16 @@ <div class="ui secondary pointing menu"> <router-link class="ui item" - :to="{name: 'federation.libraries.list'}">Libraries</router-link> + :to="{name: 'federation.libraries.list'}">{{ $t('Libraries') }}</router-link> <router-link class="ui item" - :to="{name: 'federation.tracks.list'}">Tracks</router-link> + :to="{name: 'federation.tracks.list'}">{{ $t('Tracks') }}</router-link> <div class="ui secondary right menu"> <router-link class="ui item" :to="{name: 'federation.followers.list'}"> - Followers - <div class="ui teal label" title="Pending requests">{{ requestsCount }}</div> + {{ $t('Followers') }} + <div class="ui teal label" :title="$t('Pending requests')">{{ requestsCount }}</div> </router-link> </div> </div> diff --git a/front/src/views/federation/LibraryDetail.vue b/front/src/views/federation/LibraryDetail.vue index 20250e333d866941e7605667b1a3541b7095e716..bd2e63c4d9c4644c66d625bd8218dcdbf864ef85 100644 --- a/front/src/views/federation/LibraryDetail.vue +++ b/front/src/views/federation/LibraryDetail.vue @@ -19,18 +19,18 @@ <tbody> <tr> <td > - Follow status + {{ $t('Follow status') }} <span :data-tooltip="$t('This indicate if the remote library granted you access')"><i class="question circle icon"></i></span> </td> <td> <template v-if="object.follow.approved === null"> - <i class="loading icon"></i> Pending approval + <i class="loading icon"></i> {{ $t('Pending approval') }} </template> <template v-else-if="object.follow.approved === true"> - <i class="check icon"></i> Following + <i class="check icon"></i> {{ $t('Following') }} </template> <template v-else-if="object.follow.approved === false"> - <i class="x icon"></i> Not following + <i class="x icon"></i> {{ $t('Not following') }} </template> </td> <td> @@ -38,7 +38,7 @@ </tr> <tr> <td> - Federation + {{ $t('Federation') }} <span :data-tooltip="$t('Use this flag to enable/disable federation with this library')"><i class="question circle icon"></i></span> </td> <td> @@ -54,7 +54,7 @@ </tr> <tr> <td> - Auto importing + {{ $t('Auto importing') }} <span :data-tooltip="$t('When enabled, auto importing will automatically import new tracks published in this library')"><i class="question circle icon"></i></span> </td> <td> @@ -82,14 +82,14 @@ </tr> --> <tr> - <td>Library size</td> + <td>{{ $t('Library size') }}</td> <td> - {{ object.tracks_count }} tracks + {{ $t('{%count%} tracks', { count: object.tracks_count }) }} </td> <td></td> </tr> <tr> - <td>Last fetched</td> + <td>{{ $t('Last fetched') }}</td> <td> <human-date v-if="object.fetched_date" :date="object.fetched_date"></human-date> <template v-else>Never</template> @@ -97,10 +97,10 @@ @click="scan" v-if="!scanTrigerred" :class="['ui', 'basic', {loading: isScanLoading}, 'button']"> - <i class="sync icon"></i> Trigger scan + <i class="sync icon"></i> {{ $t('Trigger scan') }} </button> <button v-else class="ui success button"> - <i class="check icon"></i> Scan triggered! + <i class="check icon"></i> {{ $t('Scan triggered!') }} </button> </td> @@ -110,10 +110,10 @@ </table> </div> <div class="ui hidden divider"></div> - <button @click="fetchData" class="ui basic button">Refresh</button> + <button @click="fetchData" class="ui basic button">{{ $t('Refresh') }}</button> </div> <div class="ui vertical stripe segment"> - <h2>Tracks available in this library</h2> + <h2>{{ $t('Tracks available in this library') }}</h2> <library-track-table v-if="!isLoading" :filters="{library: id}"></library-track-table> </div> </template> diff --git a/front/src/views/federation/LibraryFollowersList.vue b/front/src/views/federation/LibraryFollowersList.vue index 8ca120e8b54e3178d16dfcd7cd6f4af9468ddf1d..ce79e478747267637a418cb31f979a0421d1f98a 100644 --- a/front/src/views/federation/LibraryFollowersList.vue +++ b/front/src/views/federation/LibraryFollowersList.vue @@ -1,10 +1,9 @@ <template> <div v-title="'Followers'"> <div class="ui vertical stripe segment"> - <h2 class="ui header">Browsing followers</h2> + <h2 class="ui header">{{ $t('Browsing followers') }}</h2> <p> - Be careful when accepting follow requests, as it means the follower - will have access to your entire library. + {{ $t('Be careful when accepting follow requests, as it means the follower will have access to your entire library.') }} </p> <div class="ui hidden divider"></div> <library-follow-table></library-follow-table> diff --git a/front/src/views/federation/LibraryList.vue b/front/src/views/federation/LibraryList.vue index 43800a72e4afd182b3b925997f842f11198bf416..7b0b259412a3665bb4c4c04f1ce62444872439dc 100644 --- a/front/src/views/federation/LibraryList.vue +++ b/front/src/views/federation/LibraryList.vue @@ -1,22 +1,22 @@ <template> <div v-title="'Libraries'"> <div class="ui vertical stripe segment"> - <h2 class="ui header">Browsing libraries</h2> + <h2 class="ui header">{{ $t('Browsing libraries') }}</h2> <router-link class="ui basic green button" :to="{name: 'federation.libraries.scan'}"> <i class="plus icon"></i> - Add a new library + {{ $t('Add a new library') }} </router-link> <div class="ui hidden divider"></div> <div :class="['ui', {'loading': isLoading}, 'form']"> <div class="fields"> <div class="field"> - <label>Search</label> + <label>{{ $t('Search') }}</label> <input type="text" v-model="query" placeholder="Enter an library domain name..."/> </div> <div class="field"> - <label>Ordering</label> + <label>{{ $t('Ordering') }}</label> <select class="ui dropdown" v-model="ordering"> <option v-for="option in orderingOptions" :value="option[0]"> {{ option[1] }} @@ -24,14 +24,14 @@ </select> </div> <div class="field"> - <label>Ordering direction</label> + <label>{{ $t('Ordering direction') }}</label> <select class="ui dropdown" v-model="orderingDirection"> - <option value="">Ascending</option> - <option value="-">Descending</option> + <option value="">{{ $t('Ascending') }}</option> + <option value="-">{{ $t('Descending') }}</option> </select> </div> <div class="field"> - <label>Results per page</label> + <label>{{ $t('Results per page') }}</label> <select class="ui dropdown" v-model="paginateBy"> <option :value="parseInt(12)">12</option> <option :value="parseInt(25)">25</option> diff --git a/front/src/views/federation/LibraryTrackList.vue b/front/src/views/federation/LibraryTrackList.vue index 42526b6e422d2325c480024e035d9907a28e9fe0..b9a78527f16eac6eae0fb6365ede85cd35f0248f 100644 --- a/front/src/views/federation/LibraryTrackList.vue +++ b/front/src/views/federation/LibraryTrackList.vue @@ -1,7 +1,7 @@ <template> <div v-title="'Federated tracks'"> <div class="ui vertical stripe segment"> - <h2 class="ui header">Browsing federated tracks</h2> + <h2 class="ui header">{{ $t('Browsing federated tracks') }}</h2> <div class="ui hidden divider"></div> <library-track-table :show-library="true"></library-track-table> </div>