feat: Optimize i18n keys and remove unused keys, supporting static files in I18nT (#2092)

* feat: packages web i18n

* delete file

* feat:i18n add i18nT

* handle keys

* delete unusedKeys

* fix build

* update dev.md
This commit is contained in:
jingyang
2024-07-19 16:28:07 +08:00
committed by GitHub
parent f7b55b501f
commit 57ff38e16f
64 changed files with 552 additions and 1547 deletions

View File

@@ -1,60 +1,42 @@
{
"AI Advanced Settings": "AI Advanced Settings",
"AI Settings": "AI Settings",
"Advance App TestTip": "Current app may be in advanced orchestration mode\nTo switch to【Simple Mode】please click the save button on the left",
"App Detail": "App Details",
"Apps Share": "Apps Share",
"Basic Settings": "Basic Settings",
"Chat Debug": "Chat Debug",
"Chat Logs Tips": "Logs will record online, shared and API (chatId required) conversation records for this app",
"Chat logs": "Chat Logs",
"Confirm Del App Tip": "Confirm to delete this app and all its chat records?",
"Confirm copy app tip": "The system will create an application with the same configuration for you, but the permission will not be copied, please confirm!",
"Confirm delete folder tip": "Are you sure to delete this folder? All the following applications and corresponding chat records will be deleted, please confirm!",
"Connection is invalid": "Connection is invalid",
"Connection type is different": "Connection type is different",
"Copy Module Config": "Copy Config",
"Copy one app": "Copy",
"Create bot": "App",
"Create copy success": "Create copy success",
"Create one ai app": "Create AI app",
"Current settings": "Current settings",
"Dataset Quote Template": "Knowledge Base QA Mode",
"Edit app": "Edit app",
"Edit info": "Edit info",
"Export Config Successful": "Config copied, please check for important data",
"Export Configs": "Export Configs",
"Feedback Count": "User Feedback",
"Go to chat": "To chat",
"Go to run": "Run",
"Import Configs": "Import Configs",
"Import Configs Failed": "Failed to import configs, please ensure configs are valid!",
"Input Field Settings": "Input Field Settings",
"Logs Empty": "No logs yet~",
"Logs Message Total": "Total Messages",
"Logs Source": "Source",
"Logs Time": "Time",
"Logs Title": "Title",
"Mark Count": "Marked Answer Count",
"Move app": "Move app",
"My Apps": "My Apps",
"Output Field Settings": "Output Field Settings",
"Paste Config": "Paste Config",
"plugin_cost_per_times": "{{cost}}/per time",
"Plugin dispatch": "Plugins",
"Plugin dispatch tip": "It is up to the model to decide which plug-ins to add additional capabilities to. If the plug-in is selected, the knowledge base call is also treated as a special plug-in.",
"Publish channel": "Publish channel",
"Publish success": "Publish success",
"ai_settings": "AI Settings",
"app_detail": "App Details",
"chat_debug": "Chat Debug",
"chat_logs_tips": "Logs will record online, shared and API (chatId required) conversation records for this app",
"chat_logs": "Chat Logs",
"confirm_del_app_tip": "Confirm to delete this app and all its chat records?",
"confirm_copy_app_tip": "The system will create an application with the same configuration for you, but the permission will not be copied, please confirm!",
"confirm_delete_folder_tip": "Are you sure to delete this folder? All the following applications and corresponding chat records will be deleted, please confirm!",
"copy_one_app": "Copy",
"create_copy_success": "Create copy success",
"current_settings": "Current settings",
"edit_app": "Edit app",
"edit_info": "Edit info",
"export_config_successful": "Config copied, please check for important data",
"export_configs": "Export Configs",
"feedback_count": "User Feedback",
"go_to_chat": "To chat",
"go_to_run": "Run",
"import_configs": "Import Configs",
"import_configs_failed": "Failed to import configs, please ensure configs are valid!",
"logs_empty": "No logs yet~",
"logs_message_total": "Total Messages",
"logs_title": "Title",
"mark_count": "Marked Answer Count",
"move_app": "Move app",
"paste_config": "Paste Config",
"plugin_dispatch": "Plugins",
"plugin_dispatch_tip": "It is up to the model to decide which plug-ins to add additional capabilities to. If the plug-in is selected, the knowledge base call is also treated as a special plug-in.",
"publish_channel": "Publish channel",
"publish_success": "Publish success",
"Run": "Run",
"Search app": "Search app",
"Setting app": "Settings",
"Setting plugin": "Setting plugin",
"To Chat": "Go to Chat",
"To Settings": "View Details",
"Transition to workflow": "Transition to workflow",
"Transition to workflow create new placeholder": "Create a new application instead of modifying the current one",
"Transition to workflow create new tip": "After converting to workflow, it will not be able to convert back to simple mode, please confirm!",
"Variable Key Repeat Tip": "Variable key is duplicate",
"search_app": "Search app",
"setting_app": "Settings",
"setting_plugin": "Setting plugin",
"transition_to_workflow": "Transition to workflow",
"transition_to_workflow_create_new_placeholder": "Create a new application instead of modifying the current one",
"transition_to_workflow_create_new_tip": "After converting to workflow, it will not be able to convert back to simple mode, please confirm!",
"app": {
"modules": {
"click to update": "click to update",
@@ -65,17 +47,16 @@
"plugin_cost_per_times": "{{cost}} points/times"
},
"module": {
"Combine Modules": "Combine Modules",
"Confirm Sync": "The template will be updated to the latest template configuration. Fields that do not exist in the template will be deleted (including all custom fields). You are advised to make a copy of the node and then update the original node version.",
"Custom Title Tip": "This title will be displayed during the conversation",
"My Modules": "My Modules",
"No Modules": "No plugins yet~",
"System Module": "System Module",
"type": "\"{{type}}\" type\n{{description}}"
"No Modules": "No plugins yet~"
},
"modules": {
"Title is required": "Module name cannot be empty"
},
"template": {
"simple_robot": "Simple Robot"
},
"type": {
"All": "All",
"Create http plugin tip": "Create plug-ins in batches using OpenAPI schema, compatible with GPTs format.",
@@ -93,4 +74,4 @@
"version": {
"Revert success": "Revert success"
}
}
}

View File

@@ -1,18 +1,12 @@
{
"Chat input guide lexicon is empty": "The lexicon has not been configured",
"Config Texts": "Config thesaurus ",
"Config input guide lexicon": "Config",
"Config input guide lexicon title": "Config lexicon",
"Config question guide": "Configuration input Prompt ",
"Csv input lexicon tip": "Only CSV can be imported in batches. Click to download the template",
"Custom input guide url": "Custom lexicon url",
"Custom question guide URL": "Custom lexicon address ",
"Input Guide": "Intelligent Recommendation ",
"Input guide": "Input guide",
"Input guide lexicon": "Lexicon",
"Input guide tip": "You can configure some preset questions. When the user enters a question, the relevant question is retrieved from these preset questions for prompt.",
"Insert input guide, Some data already exists": "Duplicate data, automatically filtered, insert: {{len}} data",
"New input guide lexicon": "New lexicon",
"Only support CSV": "Only support CSV import, click download template ",
"Question Guide Texts": "Lexicon"
}
"chat_input_guide_lexicon_is_empty": "The lexicon has not been configured",
"config_input_guide_lexicon": "Config",
"config_input_guide_lexicon_title": "Config lexicon",
"csv_input_lexicon_tip": "Only CSV can be imported in batches. Click to download the template",
"custom_input_guide_url": "Custom lexicon url",
"input_guide": "Input guide",
"input_guide_lexicon": "Lexicon",
"input_guide_tip": "You can configure some preset questions. When the user enters a question, the relevant question is retrieved from these preset questions for prompt.",
"insert_input_guide,_some_data_already_exists": "Duplicate data, automatically filtered, insert: {{len}} data",
"new_input_guide_lexicon": "New lexicon"
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,26 +1,25 @@
{
"Collection tags": "Tags",
"Common Dataset": "Common dataset",
"Common Dataset Desc": "Can be built by importing files, web links, or manual entry",
"Confirm to rebuild embedding tip": "Are you sure to switch the knowledge base index?\nSwitching index is a very heavy operation that requires re-indexing all the data in your knowledge base, which may take a long time. Please ensure that the remaining points in your account are sufficient.\n\nIn addition, you need to be careful to modify the applications that select this knowledge base to avoid mixing them with other index model knowledge bases.",
"collection_tags": "Tags",
"common_dataset": "Common dataset",
"common_dataset_desc": "Can be built by importing files, web links, or manual entry",
"confirm_to_rebuild_embedding_tip": "Are you sure to switch the knowledge base index?\nSwitching index is a very heavy operation that requires re-indexing all the data in your knowledge base, which may take a long time. Please ensure that the remaining points in your account are sufficient.\n\nIn addition, you need to be careful to modify the applications that select this knowledge base to avoid mixing them with other index model knowledge bases.",
"Disabled": "Disabled",
"Enable": "Enable",
"Enabled": "Enabled",
"External file": "External file",
"External file Dataset Desc": "You can import files from an external file library to build a knowledge base. Files are not stored twice",
"External id": "File id",
"External read url": "External read url",
"External read url tip": "You can configure the reading address of your file library. This allows users to read and authenticate. You can currently use the {{fileId}} variable to refer to the external file ID.",
"External url": "File read url",
"Folder Dataset": "Folder",
"Rebuild embedding start tip": "The task of switching index models has begun",
"Rebuilding index count": "Rebuilding count: {{count}}",
"The knowledge base has indexes that are being trained or being rebuilt": "The knowledge base has indexes that are being trained or being rebuilt",
"Website Dataset": "Web site",
"Website Dataset Desc": "Web site synchronization allows you to use a web page link to build a dataset",
"external_file": "External file",
"external_file_dataset_desc": "You can import files from an external file library to build a knowledge base. Files are not stored twice",
"external_id": "File id",
"external_read_url": "External read url",
"external_read_url_tip": "You can configure the reading address of your file library. This allows users to read and authenticate. You can currently use the {{fileId}} variable to refer to the external file ID.",
"external_url": "File read url",
"rebuild_embedding_start_tip": "The task of switching index models has begun",
"rebuilding_index_count": "Rebuilding count: {{count}}",
"the_knowledge_base_has_indexes_that_are_being_trained_or_being_rebuilt": "The knowledge base has indexes that are being trained or being rebuilt",
"website_dataset": "Web site",
"website_dataset_desc": "Web site synchronization allows you to use a web page link to build a dataset",
"collection": {
"Create update time": "Create/Update time",
"Training type": "Training type"
},
"filename": "filename"
}
}

View File

@@ -1,24 +1,15 @@
{
"Click to view raw source": "View source",
"Click to view file": "Click to view the original file",
"Release the mouse to upload the file": "Release the mouse to upload the file",
"upload error description": "Only supports uploading multiple files or one folder at a time",
"Empty file tip": "The file content is empty, the file may not be readable or it may be a pure image file.",
"File Content": "File Content",
"File Name": "File Name",
"File Size": "File Size",
"File content can not be empty": "File content cannot be empty",
"Filename Can not Be Empty": "Filename cannot be empty",
"Read File Error": "File parsing failed",
"Select and drag file tip": "Click or drag files here to upload",
"Select failed": "File selection failed",
"Select file amount limit": "You can select up to {{max}} files",
"Select file amount limit 100": "You can select up to 100 files at a time",
"Some file count exceeds limit": "Exceeds {{maxCount}} files, automatically truncated",
"Some file size exceeds limit": "Some files exceed: {{maxSize}}, have been filtered",
"Support file type": "Supports {{fileType}} type files",
"Support max count": "Supports up to {{maxCount}} files.",
"Support max size": "Maximum size per file: {{maxSize}}.",
"Upload failed": "Upload failed"
}
"click_to_view_raw_source": "View source",
"release_the_mouse_to_upload_the_file": "Release the mouse to upload the file",
"upload_error_description": "Only supports uploading multiple files or one folder at a time",
"file_name": "File Name",
"file_size": "File Size",
"select_and_drag_file_tip": "Click or drag files here to upload",
"select_file_amount_limit": "You can select up to {{max}} files",
"some_file_count_exceeds_limit": "Exceeds {{maxCount}} files, automatically truncated",
"some_file_size_exceeds_limit": "Some files exceed: {{maxSize}}, have been filtered",
"support_file_type": "Supports {{fileType}} type files",
"support_max_count": "Supports up to {{maxCount}} files.",
"support_max_size": "Maximum size per file: {{maxSize}}.",
"upload_failed": "Upload failed"
}

View File

@@ -1,22 +1,17 @@
{
"Copy IFrame": "Embed webpage",
"Copy Link": "Copy",
"Create API Key": "Create new Key",
"Create Link": "Create link",
"Default Response": "Default Response",
"Delete Link": "Delete link",
"Edit API Key": "Edit Key information",
"Edit IFrame Link": "Update embed link",
"Edit Link": "Edit",
"Edit Share Window": "Update share window",
"Feishu name": "Lark",
"Link Name": "Name of the share link",
"QPM Tips": "How many times per minute can each IP ask at most",
"QPM is empty": "QPM cannot be empty",
"app key tips": "These keys have the current application identification, refer to the document for specific use ",
"key alias": "key alias, for display only ",
"key tips": "You can use the API Key to access certain interfaces (you can't access the app, you need to use the API key within the app to access the app)",
"token auth": "Token authentication",
"token auth Tips": "Identity verification server address, if this value is filled, a request will be sent to the specified server before each conversation to perform identity verification",
"token auth use cases": "View usage instructions for identity verification"
}
"create_api_key": "Create new Key",
"create_link": "Create link",
"default_response": "Default Response",
"edit_api_key": "Edit Key information",
"edit_link": "Edit",
"feishu_name": "Lark",
"link_name": "Name of the share link",
"qpm_tips": "How many times per minute can each IP ask at most",
"qpm_is_empty": "QPM cannot be empty",
"app_key_tips": "These keys have the current application identification, refer to the document for specific use ",
"key_alias": "key alias, for display only ",
"key_tips": "You can use the API Key to access certain interfaces (you can't access the app, you need to use the API key within the app to access the app)",
"token_auth": "Token authentication",
"token_auth_tips": "Identity verification server address, if this value is filled, a request will be sent to the specified server before each conversation to perform identity verification",
"token_auth_use_cases": "View usage instructions for identity verification"
}

View File

@@ -1,22 +1,8 @@
{
"permission": {
"Set read permission": "Read permission",
"Set write permission": "Write permission",
"Write": "Write"
},
"team": {
"Add manager": "Add manager"
},
"user": {
"team": {
"permission": {
"Manage": "Admin",
"Manage tip": "Team administrator with full permissions",
"Read": "Read",
"Read desc": "Members can only read related resources and cannot create new resources",
"Write": "Write",
"Write tip": "In addition to readable resources, you can create new resources"
}
}
}
}
}

View File

@@ -1,19 +1,19 @@
{
"Add new input": "Add input",
"add_new_input": "Add input",
"Code": "Code",
"Confirm delete field tip": "Confirm to delete the field?",
"Custom input": "Custom input",
"Edit input": "Edit input",
"Field Name already exists": "Field name already exists",
"Field description": "Field description",
"Field description placeholder": "Describes the functionality of this input field, which affects the quality of model generation if the parameter is called for a tool",
"Field required": "Required",
"Field used as tool input": "As tool input",
"Input description": "Input descriotion",
"Only the Reference type is supported": "Only the Reference type is supported",
"Optional value type": "Optional value type",
"Optional value type tip": "One or more data types can be specified, and users can only select the configured type when adding fields in winter",
"Tool input": "Tool",
"confirm_delete_field_tip": "Confirm to delete the field?",
"custom_input": "Custom input",
"edit_input": "Edit input",
"field_name_already_exists": "Field name already exists",
"field_description": "Field description",
"field_description_placeholder": "Describes the functionality of this input field, which affects the quality of model generation if the parameter is called for a tool",
"field_required": "Required",
"field_used_as_tool_input": "As tool input",
"input_description": "Input descriotion",
"only_the_reference_type_is_supported": "Only the Reference type is supported",
"optional_value_type": "Optional value type",
"optional_value_type_tip": "One or more data types can be specified, and users can only select the configured type when adding fields in winter",
"tool_input": "Tool",
"code": {
"Reset template": "Reset template",
"Reset template confirm": "Are you sure to restore the code template? All input and output to template values will be reset, please be careful to save the current code."
@@ -28,4 +28,4 @@
"Custom outputs": "Custom outputs",
"Error": "Error"
}
}
}