feat: locales #27
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
return data;
|
||||
|
|
Loading…
Reference in a new issue