Skip to content

Commit

Permalink
Update locales
Browse files Browse the repository at this point in the history
  • Loading branch information
deptyped committed Jul 24, 2024
1 parent add4b58 commit fa07dda
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
24 changes: 17 additions & 7 deletions locales/en.ftl
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
start_command =
.description = Start the bot
language_command =
.description = Change language
setcommands_command =
.description = Set bot commands
## Commands

start-command-description = Start the bot
language-command-description = Change language
setcommands-command-description = Set bot commands
## Welcome Feature

welcome = Welcome!
## Language Feature

language =
.select = Please, select your language
.changed = Language successfully changed!
## Admin Feature

admin =
.commands-updated = Commands updated.
unhandled = Unrecognized command. Try /start
## Unhandled Feature

unhandled = Unrecognized command. Try /start
6 changes: 3 additions & 3 deletions src/bot/handlers/commands/setcommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import type { Context } from '#root/bot/context.js'
function getLanguageCommand(localeCode: string): BotCommand {
return {
command: 'language',
description: i18n.t(localeCode, 'language_command.description'),
description: i18n.t(localeCode, 'language-command-description'),
}
}

function getPrivateChatCommands(localeCode: string): BotCommand[] {
return [
{
command: 'start',
description: i18n.t(localeCode, 'start_command.description'),
description: i18n.t(localeCode, 'start-command-description'),
},
]
}
Expand All @@ -23,7 +23,7 @@ function getPrivateChatAdminCommands(localeCode: string): BotCommand[] {
return [
{
command: 'setcommands',
description: i18n.t(localeCode, 'setcommands_command.description'),
description: i18n.t(localeCode, 'setcommands-command-description'),
},
]
}
Expand Down

0 comments on commit fa07dda

Please sign in to comment.