feat: Add More Translation Text & Minor UI Fixes (#861)

* config token translation

* more translation and fix

* fix conflict

* fix(DialogTemplate) bug with the spec.tsx, localize hooks need to be in a recoil root

* small clean up

* fix(NewTopic) in endpoint

* fix(RecoilRoot)

* test(DialogTemplate.spec) used data-testid

* fix(DialogTemplate)

* some cleanup

---------

Co-authored-by: Danny Avila <110412045+danny-avila@users.noreply.github.com>
This commit is contained in:
Marco Beretta 2023-09-04 15:23:26 +02:00 committed by GitHub
parent 28230d9305
commit ac8b898495
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 333 additions and 206 deletions

View file

@ -28,6 +28,19 @@ export default {
com_ui_of: 'of',
com_ui_entries: 'Entries',
com_ui_pay_per_call: 'All AI conversations in one place. Pay per call and not per month',
com_ui_enter: 'Enter',
com_ui_submit: 'Submit',
com_ui_cancel: 'Cancel',
com_ui_save: 'Save',
com_ui_copy_to_clipboard: 'Copy to clipboard',
com_ui_copied_to_clipboard: 'Copied to clipboard',
com_ui_regenerate: 'Regenerate',
com_ui_continue: 'Continue',
com_ui_edit: 'Edit',
com_ui_success: 'Success',
com_ui_all: 'all',
com_ui_clear: 'Clear',
com_ui_chats: 'chats',
com_ui_delete: 'Delete',
com_ui_delete_conversation: 'Delete chat?',
com_ui_delete_conversation_confirm: 'This will delete',
@ -109,8 +122,7 @@ export default {
com_endpoint_google_maxoutputtokens:
' Maximum number of tokens that can be generated in the response. Specify a lower value for shorter responses and a higher value for longer responses.',
com_endpoint_google_custom_name_placeholder: 'Set a custom name for PaLM2',
com_endpoint_google_prompt_prefix_placeholder:
'Set custom instructions or context. Ignored if empty.',
com_endpoint_prompt_prefix_placeholder: 'Set custom instructions or context. Ignored if empty.',
com_endpoint_custom_name: 'Custom Name',
com_endpoint_prompt_prefix: 'Prompt Prefix',
com_endpoint_temperature: 'Temperature',
@ -139,6 +151,7 @@ export default {
'Top-k changes how the model selects tokens for output. A top-k of 1 means the selected token is the most probable among all tokens in the model\'s vocabulary (also called greedy decoding), while a top-k of 3 means that the next token is selected from among the 3 most probable tokens (using temperature).',
com_endpoint_anthropic_maxoutputtokens:
'Maximum number of tokens that can be generated in the response. Specify a lower value for shorter responses and a higher value for longer responses.',
com_endpoint_anthropic_custom_name_placeholder: 'Set a custom name for Anthropic',
com_endpoint_frequency_penalty: 'Frequency Penalty',
com_endpoint_presence_penalty: 'Presence Penalty',
com_endpoint_plug_use_functions: 'Use Functions',
@ -147,24 +160,27 @@ export default {
com_endpoint_disabled_with_tools_placeholder: 'Disabled with Tools Selected',
com_endpoint_plug_set_custom_instructions_for_gpt_placeholder:
'Set custom instructions to include in System Message. Default: none',
com_endpoint_import: 'Import',
com_endpoint_set_custom_name: 'Set a custom name, in case you can find this preset',
com_endpoint_preset: 'preset',
com_endpoint_presets: 'presets',
com_endpoint_preset_name: 'Preset Name',
com_endpoint_new_topic: 'New Topic',
com_endpoint: 'Endpoint',
com_endpoint_hide: 'Hide',
com_endpoint_show: 'Show',
com_endpoint_examples: ' Examples',
com_endpoint_examples: ' Presets',
com_endpoint_completion: 'Completion',
com_endpoint_agent: 'Agent',
com_endpoint_show_what_settings: 'Show {0} Settings',
com_endpoint_save: 'Save',
com_endpoint_export: 'Export',
com_endpoint_save_as_preset: 'Save As Preset',
com_endpoint_presets_clear_warning:
'Are you sure you want to clear all presets? This is irreversible.',
com_endpoint_not_implemented: 'Not implemented',
com_endpoint_edit_preset: 'Edit Preset',
com_endpoint_no_presets: 'No preset yet',
com_endpoint_not_available: 'No endpoint available',
com_endpoint_clear_all: 'Clear All',
com_endpoint_view_options: 'View Options',
com_endpoint_save_convo_as_preset: 'Save Conversation as Preset',
com_endpoint_my_preset: 'My Preset',
@ -174,6 +190,29 @@ export default {
com_endpoint_skip_hover:
'Enable skipping the completion step, which reviews the final answer and generated steps',
com_endpoint_config_token: 'Config Token',
com_endpoint_config_token_for: 'Config Token for',
com_endpoint_config_token_name: 'Token Name',
com_endpoint_config_token_name_placeholder: 'Set token first',
com_endpoint_config_token_server: 'Your token will be sent to the server, but not saved.',
com_endpoint_config_token_import_json_key: 'Import Service Account JSON Key.',
com_endpoint_config_token_import_json_key_succesful: 'Import Service Account JSON Key.',
com_endpoint_config_token_import_json_key_invalid:
'Invalid Service Account JSON Key, Did you import the correct file?',
com_endpoint_config_token_get_edge_key: 'To get your Access token for Bing, login to',
com_endpoint_config_token_get_edge_key_dev_tool:
'Use dev tools or an extension while logged into the site to copy the content of the _U cookie. If this fails, follow these',
com_endpoint_config_token_edge_instructions: 'instructions',
com_endpoint_config_token_edge_full_token_string: 'to provide the full cookie strings.',
com_endpoint_config_token_chatgpt:
'To get your Access token For ChatGPT \'Free Version\', login to',
com_endpoint_config_token_chatgpt_then_visit: 'then visit',
com_endpoint_config_token_chatgpt_copy_token: 'Copy access token.',
com_endpoint_config_token_google_need_to: 'You need to',
com_endpoint_config_token_google_vertex_ai: 'Enable Vertex AI',
com_endpoint_config_token_google_vertex_api: 'API on Google Cloud, then',
com_endpoint_config_token_google_service_account: 'Create a Service Account',
com_endpoint_config_token_google_vertex_api_role:
'Make sure to click \'Create and Continue\' to give at least the \'Vertex AI User\' role. Lastly, create a JSON key to import here.',
com_nav_export_filename: 'Filename',
com_nav_export_filename_placeholder: 'Set the filename',
com_nav_export_type: 'Type',
@ -188,7 +227,6 @@ export default {
com_nav_theme_system: 'System',
com_nav_theme_dark: 'Dark',
com_nav_theme_light: 'Light',
com_nav_clear: 'Clear',
com_nav_clear_all_chats: 'Clear all chats',
com_nav_confirm_clear: 'Confirm Clear',
com_nav_close_sidebar: 'Close sidebar',