diff --git a/src/structure/client/LocaleLoader.js b/src/structure/client/LocaleLoader.js index ef941a1..dca4c6f 100644 --- a/src/structure/client/LocaleLoader.js +++ b/src/structure/client/LocaleLoader.js @@ -3,6 +3,7 @@ const fs = require('fs'); const chalk = require('chalk'); const Util = require('../../Util.js'); +const { Emojis } = require('../../constants/index.js'); class LocaleLoader { @@ -27,7 +28,9 @@ class LocaleLoader { if (!this.languages[language]) return `< Missing Locale: ${language} >`; let string = this.languages[language][index]; - if(!string) return `< Missing Locale Index: ${language}.${index} >`; + if (!string) return `< Missing Locale Index: ${language}.${index} >`; + + for (const emoji of Object.keys(Emojis)) parameters[`emoji_${emoji}`] = Emojis[emoji]; for(const [ parameter, value ] of Object.entries(parameters)) { string = string.replace(new RegExp(Util.escapeRegex(`{${parameter.toLowerCase()}}`), 'giu'), value);