feat: locales #27
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@ import { getLocale } from '../../utils/locales';
|
|||
|
||||
export default {
|
||||
data: (client: Client) => new SlashCommandBuilder()
|
||||
.setNameLocalizations(getLocale(client, 'ping_name'))
|
||||
.setDescriptionLocalizations(getLocale(client, 'ping_desc')),
|
||||
.setNameLocalizations(getLocale(client, 'c_ping_name'))
|
||||
.setDescriptionLocalizations(getLocale(client, 'c_ping_desc')),
|
||||
|
||||
interaction: async (interaction: CommandInteraction, client: Client) => {
|
||||
const loc = client.locales.get(interaction.locale) ?? client.locales.get(client.config.default_lang);
|
||||
|
|
Loading…
Reference in a new issue