File tree 7 files changed +20
-17
lines changed
7 files changed +20
-17
lines changed Original file line number Diff line number Diff line change 7
7
xl =" 1"
8
8
lg =" 3"
9
9
md =" 4"
10
- sm =" 6"
11
- xs =" 12" >
10
+ sm =" 6" >
12
11
<v-card class =" ma-2" variant =" outlined" >
13
12
<v-img
14
13
:src =" imageFormat(item)"
42
41
xl =" 1"
43
42
lg =" 3"
44
43
md =" 4"
45
- sm =" 6"
46
- xs =" 12" >
44
+ sm =" 6" >
47
45
<v-card class =" ma-2" variant =" outlined" >
48
46
<v-img
49
47
:src =" imageFormat(item)"
Original file line number Diff line number Diff line change 56
56
xl =" 1"
57
57
lg =" 3"
58
58
md =" 4"
59
- sm =" 6"
60
- xs =" 12" >
59
+ sm =" 6" >
61
60
<v-card class =" ma-2" >
62
61
<v-img
63
62
v-if =" item.Url"
Original file line number Diff line number Diff line change 3
3
<template #icon >
4
4
<user-image :user =" auth.currentUser" :size =" 40" rounded />
5
5
<v-menu location =" bottom" >
6
- <v-list class =" min-list-width" dense >
6
+ <v-list class =" min-list-width" >
7
7
<v-list-item >
8
8
<template #prepend >
9
9
<v-avatar >
Original file line number Diff line number Diff line change 13
13
xl =" 3" >
14
14
<v-card class =" pointer-events-all" >
15
15
<v-card-title class =" text-h6" >
16
- <i18n path =" dialog.upNext.nextItemPlayingIn" tag =" span" >
17
- <template #time >
18
- <span class =" text-primary darken-2" >
19
- {{ $tc('units.time.seconds', currentItemTimeLeft) }}
20
- </span >
21
- </template >
22
- </i18n >
16
+ <span >
17
+ {{ $t('dialog.upNext.nextItemPlayingIn') }}
18
+ <span class =" text-primary darken-2" >
19
+ {{ $tc('units.time.seconds', currentItemTimeLeft) }}
20
+ </span >
21
+ </span >
23
22
</v-card-title >
24
23
<v-card-subtitle class =" text-truncate text-subtitle-1" >
25
24
<span v-if =" playbackManager.currentItem.Type === 'Episode'" >
Original file line number Diff line number Diff line change 1
- import { createI18n } from 'vue-i18n' ;
1
+ import { createI18n , I18nOptions } from 'vue-i18n' ;
2
2
// eslint-disable-next-line import/no-extraneous-dependencies
3
3
import messages from '@intlify/unplugin-vue-i18n/messages' ;
4
4
@@ -68,7 +68,7 @@ const i18n = createI18n({
68
68
fallbackLocale : DEFAULT_LANGUAGE ,
69
69
globalInjection : true ,
70
70
legacy : false ,
71
- messages
71
+ messages : messages as I18nOptions [ 'messages' ]
72
72
} ) ;
73
73
74
74
// `localeNames` is readonly but this is the one place it should actually be set
Original file line number Diff line number Diff line change @@ -32,7 +32,9 @@ export default function createRemote(): {
32
32
} {
33
33
return {
34
34
install : async ( app : App ) : Promise < void > => {
35
- app . config . globalProperties . $remote = remoteInstance ;
35
+ // `remote` is readonly but this is the one place it should actually be set
36
+ ( app . config . globalProperties . $remote as typeof remoteInstance ) =
37
+ remoteInstance ;
36
38
37
39
const auth = remoteInstance . auth ;
38
40
const config = await getJSONConfig ( ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import 'vue-router';
3
3
import { RemotePlugin } from '@/plugins/remote/types' ;
4
4
// eslint-disable-next-line no-restricted-imports
5
5
import { languageMap } from '@/plugins/i18n' ;
6
+ import enUS from '@/../locales/en-US.json' ;
6
7
import 'vue-i18n' ;
7
8
8
9
/**
@@ -40,6 +41,10 @@ declare module 'vue-i18n' {
40
41
*/
41
42
readonly localeNames : typeof languageMap ;
42
43
}
44
+
45
+ type messages = typeof enUS ;
46
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
47
+ export interface DefineLocaleMessage extends messages { }
43
48
}
44
49
45
50
/**
You can’t perform that action at this time.
0 commit comments