- do not translate non-rich embeds (fixes gifs, other issues)

- add placeholder for unknown languages in translate ops
This commit is contained in:
bignutty 2025-03-20 08:51:38 +01:00
parent 3f550a4822
commit d9c2db1510
3 changed files with 24 additions and 7 deletions

View file

@ -103,6 +103,8 @@ module.exports.ICONS_NEXTGEN = Object.freeze({
"button_full_coverage": "<:ico_full_coverage:1341535912017793045>",
"button_wolfram_compute": "<:ico_wolfram_compute:1342276477269577758>",
"gs_auto_awesome": "<:ico_gs_auto_awesome:1352186988416995380>",
/* Brands */
"brand": "<:nextgen_ico_brand:1336064940670193780>",
"brand_discord": "<:nextgen_ico_brand_discord:1336064953727320256>",
@ -1076,6 +1078,8 @@ module.exports.TRANSLATE_LANGUAGE_ALIASES = Object.freeze({
// there are a lot of overlapping flags (specifically in eastern territories),
// we have separata "display" and "resolve" mappings now.
module.exports.TRANSLATE_DISPLAY_MAPPINGS = Object.freeze({
"auto": this.ICONS_NEXTGEN.gs_auto_awesome,
"und": this.ICONS_NEXTGEN.gs_auto_awesome,
"af": "🇿🇦",
"sq": "🇦🇱",
"am": "🇪🇹",
@ -1460,7 +1464,10 @@ module.exports.TRANSLATE_LANGUAGE_MAPPINGS = Object.freeze({
})
module.exports.TRANSLATE_LANGUAGES = Object.freeze({
// 1p auto
"auto": "Automatic",
// Translate API will respond with "und" if the language is unknown
"und": "Detected Language",
"ab": "Abkhaz",
"ace": "Acehnese",
"ach": "Acholi",