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/valid-message-syntax': 'error',
|
||||||
'@intlify/vue-i18n/no-i18n-t-path-prop': 'error',
|
'@intlify/vue-i18n/no-i18n-t-path-prop': 'error',
|
||||||
'@intlify/vue-i18n/no-missing-keys': 'error',
|
'@intlify/vue-i18n/no-missing-keys': 'error',
|
||||||
|
'@intlify/vue-i18n/no-dynamic-keys': 'error',
|
||||||
'@intlify/vue-i18n/no-unused-keys': ['error', {
|
'@intlify/vue-i18n/no-unused-keys': ['error', {
|
||||||
extensions: ['.ts', '.vue'],
|
extensions: ['.ts', '.vue'],
|
||||||
enableFix: true
|
enableFix: true
|
||||||
|
|
|
@ -397,7 +397,14 @@ if (!isWebGLSupported) {
|
||||||
{{ labels.queue }}
|
{{ labels.queue }}
|
||||||
<div class="sub header">
|
<div class="sub header">
|
||||||
<div>
|
<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 class="middle pipe symbol" />
|
||||||
<span v-t="'components.Queue.meta.end'" />
|
<span v-t="'components.Queue.meta.end'" />
|
||||||
<span :title="labels.duration">
|
<span :title="labels.duration">
|
||||||
|
|
|
@ -301,14 +301,28 @@ const hideArtist = () => {
|
||||||
@click.stop="toggleMobilePlayer"
|
@click.stop="toggleMobilePlayer"
|
||||||
>
|
>
|
||||||
<i class="stream icon" />
|
<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>
|
||||||
<button
|
<button
|
||||||
class="position circular control button desktop-and-below"
|
class="position circular control button desktop-and-below"
|
||||||
@click.stop="switchTab"
|
@click.stop="switchTab"
|
||||||
>
|
>
|
||||||
<i class="stream icon" />
|
<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>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
|
|
Loading…
Reference in New Issue