Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix i18n/L10n issue: halfwidth-fullwidth, word-separator #228

Merged
merged 7 commits into from
Sep 5, 2021
4 changes: 2 additions & 2 deletions src/commands/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = async (message, command) => {
.replace(/{{defaultPrefix}}/g, config.bot.prefix)
const args = command.args
if (args) {
msg += `\n **${translate('commands.help.arguments')}:**\n`
msg += `\n **${translate('commands.help.arguments')}**\n`
const argsLength = Object.keys(args).length
let i = 0
for (const arg in args) {
Expand All @@ -38,7 +38,7 @@ module.exports = async (message, command) => {
})
return message.author.send(helpMessage, { split: { prepend: '\u200b\n' } })
.then(() => {
message.reply(translate('commands.help.checkDM'))
message.channel.send(`<@${message.author.id}>${translate('commands.help.checkDM')}`)
.catch(err => {
const log = createLogger(message.guild.shard.id)
log.warn({
Expand Down
4 changes: 2 additions & 2 deletions src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@
"help": {
"controlPanelLink": "Be sure to check out your control panel at {{url}} for easy feed management!",
"description": "Arguments for commands are added after the command. For example: `{{prefix}}test simple`.\n\n**Argument Definitions**\n`a` = Directly add `a`\n`[a]` = Optionally add `a`\n`(a|b)` = Directly input `a` OR `b`\n`<a>` = Replace `a` with relevant content",
"arguments": "Arguments",
"arguments": "Arguments:",
"support": "\nSupport can be found at {{url}}",
"checkDM": "Check your direct messages!"
"checkDM": ", Check your direct messages!"
},
"invite": {
"text": "Invite with Role - <https://discord.com/oauth2/authorize?client_id={{id}}&scope=bot&permissions=19456>\n\nInvite without Role - <https://discord.com/oauth2/authorize?client_id={{id}}&scope=bot>"
Expand Down
4 changes: 2 additions & 2 deletions src/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@
"help": {
"controlPanelLink": "Não deixe de conferir seu painel de controle em {{url}} para facilitar o gerenciamento de feeds!",
"description": "",
"arguments": "Argumentos",
"arguments": "Argumentos:",
"support": "\nSuporte pode ser encontrado em https://discord.gg/pudv7Rx",
"checkDM": "Verifique suas mensagens diretas! 😉"
"checkDM": ", Verifique suas mensagens diretas! 😉"
},
"invite": {
"text": "Convite com cargo - <https://discord.com/oauth2/authorize?client_id={{id}}&scope=bot&permissions=19456>\n\nConvite sem cargo - <https://discord.com/oauth2/authorize?client_id={{id}}&scope=bot>"
Expand Down
4 changes: 2 additions & 2 deletions src/locales/zh-Hant-TW.json → src/locales/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,9 @@
"help": {
"controlPanelLink": "",
"description": "",
"arguments": "引數",
"arguments": "引數",
"support": "",
"checkDM": "請檢查您的私訊!"
"checkDM": "請檢查您的私訊!"
},
"invite": {
"text": ""
Expand Down