feat: locales #27

Merged
Anri merged 26 commits from lang into main 2022-07-22 11:46:48 +02:00
Owner

Resolves #23.
Resolves #28.

  • Locales support
  • Add FR, EN locales need double-check files name should be the same as discord.com
  • works in prod and docker
  • localizations in slash commands with discord.com api
  • warning when the number of translated text differ between 2 lang files
    since default language in english, if other language have more strings than english, bot should crash, so we can assume that we will always have text for english and always be able to fallback to it in case of problems
Resolves #23. Resolves #28. - [x] Locales support - [x] Add FR, EN locales **need double-check files name should be the same as discord.com** - [x] works in prod and docker - [x] localizations in slash commands with discord.com api - [x] warning when the number of translated text differ between 2 lang files since default language in english, if other language have more strings than english, bot should crash, so we can assume that we will always have text for english and always be able to fallback to it in case of problems
Anri added 1 commit 2022-07-21 00:31:28 +02:00
* add FR, EN locales
* Locales support
Anri changed title from WIP: feat: locales to feat: locales 2022-07-21 00:32:11 +02:00
Anri changed title from feat: locales to WIP: feat: locales 2022-07-21 00:32:17 +02:00
Anri added 1 commit 2022-07-21 00:50:17 +02:00
Anri added 1 commit 2022-07-21 01:03:56 +02:00
Anri added 1 commit 2022-07-21 13:57:35 +02:00
Anri added 5 commits 2022-07-21 15:13:56 +02:00
Anri added 4 commits 2022-07-21 17:10:30 +02:00
Anri added 7 commits 2022-07-21 23:02:00 +02:00
Author
Owner

let's say localization in commands name and desc are working... there may be some bugs and I didn't manage to make it work, but I send all the data to discord.com normally

let's say localization in commands name and desc are working... there may be some bugs and I didn't manage to make it work, but I send all the data to discord.com normally
Anri added 3 commits 2022-07-22 00:05:59 +02:00
Anri added 2 commits 2022-07-22 01:13:33 +02:00
Author
Owner
Progression example Lang example
image image
Progression example | Lang example :-:|:-: ![image](/attachments/7895579b-8c00-4525-9498-b553e8f7277d) | ![image](/attachments/e9ef47c7-2890-41be-b0e2-87453e09986f)
Anri changed title from WIP: feat: locales to feat: locales 2022-07-22 01:14:41 +02:00
Anri added 1 commit 2022-07-22 01:50:36 +02:00
Anri merged commit d144bcb375 into main 2022-07-22 11:46:48 +02:00
Anri referenced this pull request from a commit 2022-07-22 11:46:48 +02:00
Anri deleted branch lang 2022-07-22 11:46:49 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ConfrerieDuKassoulait/Botanique#27
No description provided.