diff --git a/src/utils/locales.ts b/src/utils/locales.ts index 079db2e..472d7c2 100644 --- a/src/utils/locales.ts +++ b/src/utils/locales.ts @@ -49,10 +49,9 @@ export const getLocale = (client: Client, text: string) => { const str = locale.get(text) ?? client.locales.get(client.config.default_lang)?.get(text); - if (str === undefined) { - throw 'Missing locales'; + if (str !== undefined) { + data[lang] = str.toLowerCase(); } - data[lang] = str.toLowerCase(); }); return data;