KevinNovak / Discord-Bot-TypeScript-Template

Discord bot - A discord.js bot template written with TypeScript.
MIT License
477 stars 86 forks source link

Add French, Spanish, and German localization #70

Open TheShinriel opened 1 year ago

Zathiel commented 3 months ago

Hey @TheShinriel

I have try to implement the FR localization But still not working.

enum-helpers\language.ts

export class Language { public static Default = Locale.French; public static Enabled: Locale[] = [Locale.EnglishUS, Locale.EnglishGB, Locale.French,];

lang.fr.json also imported

after that i just run npm start => /dev/info slash command don't work anymore

Any Hint

Thanks

TheShinriel commented 1 month ago

I forget that PR, sorry

https://github.com/KevinNovak/Linguini

The language is imported here: https://github.com/KevinNovak/Discord-Bot-TypeScript-Template/blob/01d6cbd9cf27063ed1a4c9971eb5944dd012b958/src/services/lang.ts#L19

The lang is loaded from the event with the guild (discord) configuration

Zathiel commented 1 month ago

Hey @TheShinriel No problem.

According to the file i modify upper did i still have a things in /services/langs.ts

If u can give me the hint im missing

Regards

TheShinriel commented 1 month ago

I'm not sure there's anything missing, the bot adapts to the language selected by the discord. So you need a server configured in a language so that it responds accordingly with a fallback to English.