built previous commit
This commit is contained in:
@@ -79,13 +79,17 @@ ${(Object.keys(meta) as Array<keyof UserScriptMetaFull>)
|
||||
: key
|
||||
key_str = key_str.padEnd(12, ' ')
|
||||
|
||||
if (typeof val === 'boolean') { //bool
|
||||
if (typeof val === 'boolean') {
|
||||
//bool
|
||||
if (val) return `// @${key_str}`
|
||||
} else if (typeof val === 'string') { //string
|
||||
} else if (typeof val === 'string') {
|
||||
//string
|
||||
return `// @${key_str} ${val}`
|
||||
} else if (Array.isArray(val)) { //multiple
|
||||
} else if (Array.isArray(val)) {
|
||||
//multiple
|
||||
return val.map(v => `// @${key_str} ${v}`).join('\n')
|
||||
} else if (typeof val === 'object') { //multilingual
|
||||
} else if (typeof val === 'object') {
|
||||
//multilingual
|
||||
let langs = val
|
||||
return Object.keys(langs)
|
||||
.map(lang => {
|
||||
|
||||
Reference in New Issue
Block a user