mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 13:43:06 -04:00
- do not translate non-rich embeds (fixes gifs, other issues)
- add placeholder for unknown languages in translate ops
This commit is contained in:
parent
3f550a4822
commit
d9c2db1510
3 changed files with 24 additions and 7 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue