Discord-Bot-TypeScript-Template icon indicating copy to clipboard operation
Discord-Bot-TypeScript-Template copied to clipboard

Add French, Spanish, and German localization

Open TheShinriel opened this issue 2 years ago • 4 comments

TheShinriel avatar Jul 29 '23 11:07 TheShinriel

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

Zathiel avatar Jul 13 '24 01:07 Zathiel

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

TheShinriel avatar Aug 26 '24 16:08 TheShinriel

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

Zathiel avatar Sep 01 '24 11:09 Zathiel

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.

TheShinriel avatar Sep 02 '24 12:09 TheShinriel