fix(eslint): fix i18n issues
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2346>
This commit is contained in:
parent
c362a7fd90
commit
87c456f603
|
@ -38,6 +38,7 @@ module.exports = {
|
|||
'@intlify/vue-i18n/valid-message-syntax': 'error',
|
||||
'@intlify/vue-i18n/no-i18n-t-path-prop': 'error',
|
||||
'@intlify/vue-i18n/no-missing-keys': 'error',
|
||||
'@intlify/vue-i18n/no-dynamic-keys': 'error',
|
||||
'@intlify/vue-i18n/no-unused-keys': ['error', {
|
||||
extensions: ['.ts', '.vue'],
|
||||
enableFix: true
|
||||
|
|
|
@ -397,7 +397,14 @@ if (!isWebGLSupported) {
|
|||
{{ labels.queue }}
|
||||
<div class="sub header">
|
||||
<div>
|
||||
<span v-t="{ path: 'components.Queue.meta.queuePosition', args: { index: currentIndex + 1, length: queue.length } }" />
|
||||
<i18n-t keypath="components.Queue.meta.queuePosition">
|
||||
<template #index>
|
||||
{{ currentIndex + 1 }}
|
||||
</template>
|
||||
<template #length>
|
||||
{{ queue.length }}
|
||||
</template>
|
||||
</i18n-t>
|
||||
<span class="middle pipe symbol" />
|
||||
<span v-t="'components.Queue.meta.end'" />
|
||||
<span :title="labels.duration">
|
||||
|
|
|
@ -301,14 +301,28 @@ const hideArtist = () => {
|
|||
@click.stop="toggleMobilePlayer"
|
||||
>
|
||||
<i class="stream icon" />
|
||||
<span v-t="{ path: 'components.audio.Player.meta.position', args: { index: currentIndex + 1, length: queue.length } }" />
|
||||
<i18n-t keypath="components.audio.Player.meta.position">
|
||||
<template #index>
|
||||
{{ currentIndex + 1 }}
|
||||
</template>
|
||||
<template #length>
|
||||
{{ queue.length }}
|
||||
</template>
|
||||
</i18n-t>
|
||||
</button>
|
||||
<button
|
||||
class="position circular control button desktop-and-below"
|
||||
@click.stop="switchTab"
|
||||
>
|
||||
<i class="stream icon" />
|
||||
<span v-t="{ path: 'components.audio.Player.meta.position', args: { index: currentIndex + 1, length: queue.length } }" />
|
||||
<i18n-t keypath="components.audio.Player.meta.position">
|
||||
<template #index>
|
||||
{{ currentIndex + 1 }}
|
||||
</template>
|
||||
<template #length>
|
||||
{{ queue.length }}
|
||||
</template>
|
||||
</i18n-t>
|
||||
</button>
|
||||
|
||||
<button
|
||||
|
|
Loading…
Reference in New Issue