diff options
Diffstat (limited to 'src/shared')
| -rw-r--r-- | src/shared/constants.js | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/shared/constants.js b/src/shared/constants.js index 76a679c..adae26d 100644 --- a/src/shared/constants.js +++ b/src/shared/constants.js @@ -67,5 +67,21 @@ export const BG_TO_CONTENT = { /** Message types: one-shot runtime messages (popup/options -> background). */ export const RUNTIME_MESSAGES = { - LIST_MODELS: 'listModels' + LIST_MODELS: 'listModels', + GET_POPUP_STATE: 'getPopupState', + START_CONTEXT_MENU_TRANSLATION: 'startContextMenuTranslation', + REGENERATE_LAST: 'regenerateLast' +}; + +/** Context menu item id (menus API). */ +export const MENU_ID_TRANSLATE_SELECTION = 'translate-selection'; + +/** Popup translation result statuses (Design.md ยง7.4). */ +export const POPUP_STATUSES = { + IDLE: 'idle', + STARTING: 'starting', + STREAMING: 'streaming', + COMPLETED: 'completed', + ERROR: 'error', + CANCELLED: 'cancelled' };
\ No newline at end of file |
