@@ -68,7 +68,7 @@ export function apply(ctx: Context, config: Config) {
68
68
69
69
const filtered = images ?. filter ( ( image ) => config . nsfw || ! image . nsfw )
70
70
71
- if ( ! filtered ?. length ) return session ?. text ( '.no-result' )
71
+ if ( ! filtered ?. length ) return session ?. text ( 'commands.booru.messages .no-result' )
72
72
73
73
const output : Element [ ] [ ] = [ ]
74
74
@@ -86,13 +86,13 @@ export function apply(ctx: Context, config: Config) {
86
86
if ( config . asset && ctx . assets ) {
87
87
url = await ctx . booru . imgUrlToAssetUrl ( url )
88
88
if ( ! url ) {
89
- children . unshift ( < i18n path = '.no-image' > </ i18n > )
89
+ children . unshift ( < i18n path = 'commands.booru.messages .no-image' > </ i18n > )
90
90
continue
91
91
}
92
92
} else if ( config . base64 ) {
93
93
url = await ctx . booru . imgUrlToBase64 ( url )
94
94
if ( ! url ) {
95
- children . unshift ( < i18n path = '.no-image' > </ i18n > )
95
+ children . unshift ( < i18n path = 'commands.booru.messages .no-image' > </ i18n > )
96
96
continue
97
97
}
98
98
}
@@ -101,10 +101,10 @@ export function apply(ctx: Context, config: Config) {
101
101
if ( image . tags ) {
102
102
children . unshift (
103
103
< p >
104
- < i18n path = '.output.source' > { [ source ] } </ i18n >
104
+ < i18n path = 'commands.booru.messages .output.source' > { [ source ] } </ i18n >
105
105
</ p > ,
106
106
< p >
107
- < i18n path = '.output.tags' > { [ image . tags . join ( ', ' ) ] } </ i18n >
107
+ < i18n path = 'commands.booru.messages .output.tags' > { [ image . tags . join ( ', ' ) ] } </ i18n >
108
108
</ p > ,
109
109
)
110
110
}
@@ -122,14 +122,14 @@ export function apply(ctx: Context, config: Config) {
122
122
< p >
123
123
{ config . output >= OutputType . ImageAndLink && image . authorUrl ? (
124
124
< a href = { image . authorUrl } >
125
- < i18n path = '.output.author' > { [ image . author ] } </ i18n >
125
+ < i18n path = 'commands.booru.messages .output.author' > { [ image . author ] } </ i18n >
126
126
</ a >
127
127
) : (
128
- < i18n path = '.output.author' > { [ image . author ] } </ i18n >
128
+ < i18n path = 'commands.booru.messages .output.author' > { [ image . author ] } </ i18n >
129
129
) }
130
130
</ p > ,
131
131
< p >
132
- < i18n path = '.output.desc' > { [ image . desc ] } </ i18n >
132
+ < i18n path = 'commands.booru.messages .output.desc' > { [ image . desc ] } </ i18n >
133
133
</ p > ,
134
134
)
135
135
}
@@ -164,7 +164,7 @@ export function apply(ctx: Context, config: Config) {
164
164
const tip = Random . pick ( tips )
165
165
output . push (
166
166
< p >
167
- < i18n path = '.tips' > </ i18n >
167
+ < i18n path = 'commands.booru.messages .tips' > </ i18n >
168
168
< i18n path = { tip } > { [ command . displayName ] } </ i18n >
169
169
</ p > ,
170
170
)
0 commit comments