fixes an issue with the default language list

This commit is contained in:
bignutty 2024-11-07 20:46:52 +01:00
parent 2d25e87249
commit a8af3d8603

View file

@ -7,7 +7,7 @@ module.exports = async (context)=>{
choices = getLanguagesFromAny(context.value)
} else {
// Default language suggestions
choices = TRANSLATE_DEFAULT_LANGUAGE_LIST
choices = Object.assign([], TRANSLATE_DEFAULT_LANGUAGE_LIST)
}
return context.respond({ choices: choices.splice(0, 20).map((l)=>({