-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refacto: folder structure with new
core
folder
- Loading branch information
Showing
93 changed files
with
776 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* eslint-disable */ | ||
import type { BaseTranslation } from '../i18n-types' | ||
|
||
const en = { | ||
GUARDS: { | ||
DISABLED_COMMAND: 'This command is currently disabled.', | ||
MAINTENANCE: 'This bot is currently in maintenance mode.', | ||
GUILD_ONLY: 'This command can only be used in a server.', | ||
NSFW: 'This command can only be used in a NSFW channel.', | ||
}, | ||
ERRORS: { | ||
UNKNOWN: 'An unknown error occurred.', | ||
}, | ||
SHARED: { | ||
NO_COMMAND_DESCRIPTION: 'No description provided.', | ||
}, | ||
COMMANDS: { | ||
INVITE: { | ||
DESCRIPTION: 'Invite the bot to your server!', | ||
EMBED: { | ||
TITLE: 'Invite me on your server!', | ||
DESCRIPTION: '[Click here]({link}) to invite me!', | ||
}, | ||
}, | ||
PREFIX: { | ||
NAME: 'prefix', | ||
DESCRIPTION: 'Change the prefix of the bot.', | ||
OPTIONS: { | ||
PREFIX: { | ||
NAME: 'new_prefix', | ||
DESCRIPTION: 'The new prefix of the bot.', | ||
}, | ||
}, | ||
EMBED: { | ||
DESCRIPTION: 'Prefix changed to `{prefix:string}`.', | ||
}, | ||
}, | ||
MAINTENANCE: { | ||
DESCRIPTION: 'Set the maintenance mode of the bot.', | ||
EMBED: { | ||
DESCRIPTION: 'Maintenance mode set to `{state:string}`.', | ||
}, | ||
}, | ||
STATS: { | ||
DESCRIPTION: 'Get some stats about the bot.', | ||
HEADERS: { | ||
COMMANDS: 'Commands', | ||
GUILDS: 'Guild', | ||
ACTIVE_USERS: 'Active Users', | ||
USERS: 'Users', | ||
}, | ||
}, | ||
HELP: { | ||
DESCRIPTION: 'Get global help about the bot and its commands', | ||
EMBED: { | ||
TITLE: 'Help panel', | ||
CATEGORY_TITLE: '{category:string} Commands', | ||
}, | ||
SELECT_MENU: { | ||
TITLE: 'Select a category', | ||
CATEGORY_DESCRIPTION: '{category:string} commands', | ||
}, | ||
}, | ||
PING: { | ||
DESCRIPTION: 'Pong!', | ||
MESSAGE: '{member:string} Pong! The message round-trip took {time:number}ms.{heartbeat:string}', | ||
}, | ||
}, | ||
} satisfies BaseTranslation | ||
|
||
export default en |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { FormattersInitializer } from "typesafe-i18n" | ||
import type { Locales, Formatters } from "./i18n-types" | ||
|
||
export const initFormatters: FormattersInitializer<Locales, Formatters> = (locale: Locales) => { | ||
|
||
const formatters: Formatters = { | ||
// add your formatter functions here | ||
} | ||
|
||
return formatters | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* eslint-disable */ | ||
import type { Translation } from '../i18n-types' | ||
|
||
const fr = { | ||
GUARDS: { | ||
DISABLED_COMMAND: 'Cette commande est désactivée.', | ||
MAINTENANCE: 'Ce bot est en mode maintenance.', | ||
GUILD_ONLY: "Cette commande ne peut être utilisée qu'en serveur.", | ||
NSFW: 'Cette commande ne peut être utilisée que dans un salon NSFW.', | ||
}, | ||
ERRORS: { | ||
UNKNOWN: 'Une erreur est survenue.', | ||
}, | ||
SHARED: { | ||
NO_COMMAND_DESCRIPTION: 'Aucune description fournie.', | ||
}, | ||
COMMANDS: { | ||
INVITE: { | ||
DESCRIPTION: 'Invitez le bot sur votre serveur!', | ||
EMBED: { | ||
TITLE: 'Invite moi sur ton serveur!', | ||
DESCRIPTION: "[Clique ici]({link}) pour m'inviter!", | ||
}, | ||
}, | ||
PREFIX: { | ||
NAME: 'prefixe', | ||
DESCRIPTION: 'Change le préfix du bot.', | ||
OPTIONS: { | ||
PREFIX: { | ||
NAME: 'nouveau_prefix', | ||
DESCRIPTION: 'Le nouveau préfix du bot.', | ||
}, | ||
}, | ||
EMBED: { | ||
DESCRIPTION: 'Prefix changé en `{prefix}`.', | ||
}, | ||
}, | ||
MAINTENANCE: { | ||
DESCRIPTION: 'Met le mode maintenance du bot.', | ||
EMBED: { | ||
DESCRIPTION: 'Le mode maintenance a été définie à `{state}`.', | ||
}, | ||
}, | ||
STATS: { | ||
DESCRIPTION: 'Obtiens des statistiques sur le bot.', | ||
HEADERS: { | ||
COMMANDS: 'Commandes', | ||
GUILDS: 'Serveurs', | ||
ACTIVE_USERS: 'Utilisateurs actifs', | ||
USERS: 'Utilisateurs', | ||
}, | ||
}, | ||
HELP: { | ||
DESCRIPTION: "Obtenez de l'aide globale sur le bot et ses commandes", | ||
EMBED: { | ||
TITLE: "Pannel d'aide", | ||
CATEGORY_TITLE: 'Commandes de {category}', | ||
}, | ||
SELECT_MENU: { | ||
TITLE: 'Sélectionnez une catégorie', | ||
CATEGORY_DESCRIPTION: 'Commandes de {category}', | ||
}, | ||
}, | ||
PING: { | ||
DESCRIPTION: 'Pong!', | ||
MESSAGE: '{member} Pong! Le temps de réponse de la réponse était {time}ms.{heartbeat}', | ||
}, | ||
}, | ||
} satisfies Translation | ||
|
||
export default fr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten. | ||
/* eslint-disable */ | ||
|
||
import { i18n } from './i18n-util' | ||
import { loadAllLocales } from './i18n-util.sync' | ||
import type { LocaleTranslationFunctions } from 'typesafe-i18n' | ||
import type { Locales, Translations, TranslationFunctions } from './i18n-types' | ||
|
||
loadAllLocales() | ||
|
||
export const L: LocaleTranslationFunctions<Locales, Translations, TranslationFunctions> = i18n() | ||
|
||
export default L |
Oops, something went wrong.