@@ -67,42 +67,71 @@ export const dictionary = {
6767 'No "Edit Context" configurations found. Please add one in the settings.'
6868 } ,
6969
70- // Warning messages
71- NO_VALID_CODE_BLOCKS_IN_CLIPBOARD :
72- 'Unable to find valid code blocks in the clipboard.' ,
73- CODE_COMPLETIONS_NO_SELECTION :
74- 'Code completions are not supported with active text selection.' ,
75- CANNOT_REFERENCE_FILE_OUTSIDE_WORKSPACE :
76- 'Cannot reference file outside of the workspace.' ,
77- WORKSPACE_PROVIDER_NOT_AVAILABLE_CANNOT_SAVE_CONTEXT :
78- 'Workspace provider is not available. Cannot save context.' ,
79- NO_WORKSPACE_FOLDER_FOUND_CANNOT_SAVE_CONTEXT :
80- 'No workspace folder found. Cannot save context.' ,
81- NOTHING_IN_CONTEXT_TO_SAVE : 'There is nothing in your context to save.' ,
82- CONTEXTS_FILE_NOT_VALID_ARRAY :
83- 'Contexts file is not a valid array. Starting with empty contexts list.' ,
84- NO_FILES_OR_WEBSITES_SELECTED : 'No files or websites selected or open.' ,
85- NO_OPEN_EDITORS_SELECTED : 'No open editors selected.' ,
86- NO_EDITOR_OPEN : 'No editor is open.' ,
87- CANNOT_COPY_PROMPT_IN_CODE_COMPLETION_WITH_SELECTION :
88- 'Cannot copy prompt in code completion mode with an active selection.' ,
89- CANNOT_COPY_PROMPT_IN_EDIT_CONTEXT_WITHOUT_CONTEXT :
90- 'Cannot copy prompt in edit context mode without any context. Please add files to the context.' ,
91- CANNOT_COPY_PROMPT_IN_CODE_COMPLETION_WITHOUT_EDITOR :
92- 'Cannot copy prompt in code completion mode without an active editor.' ,
93- UNABLE_TO_WORK_WITH_EMPTY_CONTEXT : 'Unable to work with empty context.' ,
94- CANNOT_PREVIEW_IN_CODE_COMPLETION_WITHOUT_EDITOR :
95- 'Cannot preview in code completion mode without an active editor.' ,
96- BROWSER_EXTENSION_NOT_CONNECTED :
97- 'Browser extension is not connected. Please install or reload it.' ,
98- TYPE_SOMETHING_TO_USE_PRESET : 'Type something to use this preset.' ,
99- PRESETS_NOT_RUN_DUE_TO_MISSING_INSTRUCTIONS :
100- 'Some presets were not run due to missing instructions.' ,
101- TYPE_SOMETHING_TO_USE_GROUP : 'Type something to use this group.' ,
102- GROUP_HAS_NO_SELECTED_PRESETS :
103- 'The chosen group has no selected presets to run.' ,
104- NO_MODEL_PROVIDERS_CONFIGURED :
105- 'No model providers configured. Please add a model provider first on the "Model Providers" page.' ,
70+ warning_message : {
71+ REVIEW_ONGOING_DISCARD :
72+ 'A review is currently ongoing. Would you like to discard it?' ,
73+ SKIPPING_INVALID_PATH : ( file_path : string ) =>
74+ `Skipping applying change to invalid path: ${ file_path } ` ,
75+ NO_VALID_CODE_BLOCKS_IN_CLIPBOARD :
76+ 'Unable to find valid code blocks in the clipboard.' ,
77+ CODE_COMPLETIONS_NO_SELECTION :
78+ 'Code completions are not supported with active text selection.' ,
79+ CANNOT_REFERENCE_FILE_OUTSIDE_WORKSPACE :
80+ 'Cannot reference file outside of the workspace.' ,
81+ WORKSPACE_PROVIDER_NOT_AVAILABLE_CANNOT_SAVE_CONTEXT :
82+ 'Workspace provider is not available. Cannot save context.' ,
83+ NO_WORKSPACE_FOLDER_FOUND_CANNOT_SAVE_CONTEXT :
84+ 'No workspace folder found. Cannot save context.' ,
85+ NOTHING_IN_CONTEXT_TO_SAVE : 'There is nothing in your context to save.' ,
86+ CONTEXTS_FILE_NOT_VALID_ARRAY :
87+ 'Contexts file is not a valid array. Starting with empty contexts list.' ,
88+ NO_FILES_OR_WEBSITES_SELECTED : 'No files or websites selected or open.' ,
89+ NO_OPEN_EDITORS_SELECTED : 'No open editors selected.' ,
90+ NO_EDITOR_OPEN : 'No editor is open.' ,
91+ CANNOT_COPY_PROMPT_IN_CODE_COMPLETION_WITH_SELECTION :
92+ 'Cannot copy prompt in code completion mode with an active selection.' ,
93+ CANNOT_COPY_PROMPT_IN_EDIT_CONTEXT_WITHOUT_CONTEXT :
94+ 'Cannot copy prompt in edit context mode without any context. Please add files to the context.' ,
95+ CANNOT_COPY_PROMPT_IN_CODE_COMPLETION_WITHOUT_EDITOR :
96+ 'Cannot copy prompt in code completion mode without an active editor.' ,
97+ UNABLE_TO_WORK_WITH_EMPTY_CONTEXT : 'Unable to work with empty context.' ,
98+ CANNOT_PREVIEW_IN_CODE_COMPLETION_WITHOUT_EDITOR :
99+ 'Cannot preview in code completion mode without an active editor.' ,
100+ BROWSER_EXTENSION_NOT_CONNECTED :
101+ 'Browser extension is not connected. Please install or reload it.' ,
102+ TYPE_SOMETHING_TO_USE_PRESET : 'Type something to use this preset.' ,
103+ PRESETS_NOT_RUN_DUE_TO_MISSING_INSTRUCTIONS :
104+ 'Some presets were not run due to missing instructions.' ,
105+ TYPE_SOMETHING_TO_USE_GROUP : 'Type something to use this group.' ,
106+ GROUP_HAS_NO_SELECTED_PRESETS :
107+ 'The chosen group has no selected presets to run.' ,
108+ FAILED_TO_CREATE_FILE : ( file_path : string ) =>
109+ `Failed to create file: ${ file_path } ` ,
110+ FAILED_TO_APPLY_CHANGES_TO_FILE : ( file_path : string ) =>
111+ `Failed to apply changes to file: ${ file_path } ` ,
112+ COULD_NOT_DELETE_FILE : ( file_path : string ) =>
113+ `Could not delete file: ${ file_path } .` ,
114+ COULD_NOT_RECREATE_FILE : ( file_path : string ) =>
115+ `Could not recreate file: ${ file_path } .` ,
116+ COULD_NOT_UNDO_FILE_MAYBE_CLOSED : ( file_path : string ) =>
117+ `Could not undo file: ${ file_path } . It might have been closed or deleted.` ,
118+ NO_VALID_PATHS_IN_CONTEXT : ( context_name : string ) =>
119+ `No valid paths found in context "${ context_name } ".` ,
120+ CONFIRM_DELETE_CONTEXT : ( context_name : string ) =>
121+ `Are you sure you want to delete context "${ context_name } "?` ,
122+ CONFIRM_DELETE_ITEM : ( item_type : 'file' | 'folder' ) =>
123+ `Are you sure you want to delete this ${ item_type } ?` ,
124+ SAVED_CONTEXT_NOT_FOUND : ( name : string , source : string ) =>
125+ `Saved context "${ name } " from ${ source } not found.` ,
126+ CONFIRM_DELETE_CONFIGURATION : ( model : string , provider : string ) =>
127+ `Are you sure you want to delete the configuration for model "${ model } " provided by ${ provider } ?` ,
128+ CONFIRM_DELETE_MODEL_PROVIDER : ( provider_name : string ) =>
129+ `Are you sure you want to delete the model provider "${ provider_name } "?` ,
130+ NO_MODELS_FOUND_MANUAL_ENTRY : ( provider_name : string ) =>
131+ `No models found for ${ provider_name } . You can enter model name manually.` ,
132+ NO_MODEL_PROVIDERS_CONFIGURED :
133+ 'No model providers configured. Please add a model provider first on the "Model Providers" page.'
134+ } ,
106135
107136 settings : {
108137 SETTINGS_TITLE : 'Settings' ,
0 commit comments