Skip to content

Commit

Permalink
Update wording
Browse files Browse the repository at this point in the history
  • Loading branch information
memochou1993 committed Dec 25, 2022
1 parent 869e9be commit 74b1057
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
10 changes: 4 additions & 6 deletions app/commands/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
COMMAND_ACTIVATE, COMMAND_COMMAND, COMMAND_DEACTIVATE, COMMAND_DEPLOY, COMMAND_DOC, COMMAND_VERSION,
} from '../../constants/command.js';
import { SETTING_AI_ACTIVATED } from '../../constants/setting.js';
import { t } from '../../languages/index.js';
import storage from '../../storage/index.js';
import { MessageAction } from '../actions/index.js';
import Context from '../context.js';
Expand All @@ -18,15 +19,12 @@ const isCommand = (context) => context.isCommand(COMMAND_COMMAND);
*/
const execCommandCommand = async (context) => {
const buttons = [
new MessageAction(COMMAND_DOC),
new MessageAction(COMMAND_VERSION),
new MessageAction(COMMAND_COMMAND),
];
const actions = [
new MessageAction(COMMAND_DOC),
new MessageAction(await storage.getItem(SETTING_AI_ACTIVATED) ? COMMAND_DEACTIVATE : COMMAND_ACTIVATE),
new MessageAction(COMMAND_DEPLOY),
new MessageAction(COMMAND_COMMAND),
];
context.pushTemplate(COMMAND_COMMAND.label, buttons, actions);
context.pushTemplate(t('__TEMPLATE_TITLE_COMMAND'), buttons);
return context;
};

Expand Down
1 change: 1 addition & 0 deletions languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const en = {
__COMMAND_RESTART_REPLY: 'Restarting',
__COMMAND_VERSION_LABEL: 'Version',
__COMMAND_VERSION_TEXT: 'Version',
__TEMPLATE_TITLE_COMMAND: 'Commands',
__COMPLETION_INIT_MESSAGE: 'Hello!',
};

Expand Down
1 change: 1 addition & 0 deletions languages/ja.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const ja = {
__COMMAND_RESTART_REPLY: '再起動しています',
__COMMAND_VERSION_LABEL: 'バージョン',
__COMMAND_VERSION_TEXT: 'バージョン',
__TEMPLATE_TITLE_COMMAND: 'コマンド',
__COMPLETION_INIT_MESSAGE: 'こんにちは!',
};

Expand Down
7 changes: 4 additions & 3 deletions languages/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ const zh = {
__COMMAND_CONFIGURE_LABEL: '設置',
__COMMAND_CONFIGURE_TEXT: '設置',
__COMMAND_CONFIGURE_REPLY: '已設置',
__COMMAND_COMMAND_LABEL: '指令',
__COMMAND_COMMAND_LABEL: '查看指令',
__COMMAND_COMMAND_TEXT: '指令',
__COMMAND_CONTINUE_LABEL: '繼續',
__COMMAND_CONTINUE_TEXT: '繼續',
__COMMAND_DOC_LABEL: '文件',
__COMMAND_DOC_LABEL: '查看文件',
__COMMAND_DOC_TEXT: '文件',
__COMMAND_DRAW_LABEL: '請畫',
__COMMAND_DRAW_TEXT: '請畫',
__COMMAND_RESTART_LABEL: '重新啟動',
__COMMAND_RESTART_TEXT: '重新啟動',
__COMMAND_RESTART_REPLY: '正在重新啟動',
__COMMAND_VERSION_LABEL: '版本',
__COMMAND_VERSION_LABEL: '查看版本',
__COMMAND_VERSION_TEXT: '版本',
__TEMPLATE_TITLE_COMMAND: '指令',
__COMPLETION_INIT_MESSAGE: '哈囉!',
};

Expand Down

0 comments on commit 74b1057

Please sign in to comment.