Command is not registering
i have a issue with register a translated command..
Current code is
Current code is
Solution
@Fabi My current suspicion is that you havent setup @sapphire/plugin-i18next properly. Here is a zip with files that are based on the CLI generated template that show what needs to be done
The important parts are:
The important parts are:
- Calling the
/registerof the plugin - Configuring the languages for the plugin (see the config in
)src/index.ts - Adding the
languagesdirectory - In
languagesadd the appropriate languages subfolders - In those subfolders create the JSON files (
ping.jsonin your case becaus you references the keys asping:Something) - Add the appropriate keys in the JSON files, in your case
CommandNameandCommandDescription - Ensure that TypeScript copies the JSON files when compiling by adding
src/**/*.jsonto theincludesarray as well as enablingcompilerOptions.resolveJsonModule
bot.zip989.56KB