-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* i18n * fix: handle
- Loading branch information
Showing
27 changed files
with
1,705 additions
and
1,595 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# .vscode/i18n-ally-custom-framework.yml | ||
|
||
# An array of strings which contain Language Ids defined by VS Code | ||
# You can check available language ids here: https://code.visualstudio.com/docs/languages/identifiers | ||
languageIds: | ||
- javascript | ||
- typescript | ||
- javascriptreact | ||
- typescriptreact | ||
|
||
# An array of RegExes to find the key usage. **The key should be captured in the first match group**. | ||
# You should unescape RegEx strings in order to fit in the YAML file | ||
# To help with this, you can use https://www.freeformatter.com/json-escape.html | ||
usageMatchRegex: | ||
# The following example shows how to detect `t("your.i18n.keys")` | ||
# the `{key}` will be placed by a proper keypath matching regex, | ||
# you can ignore it and use your own matching rules as well | ||
- "[^\\w\\d]t\\(['\"`]({key})['\"`]" | ||
- "[^\\w\\d]commonT\\(['\"`]({key})['\"`]" | ||
# 支持 appT("your.i18n.keys") | ||
- "[^\\w\\d]appT\\(['\"`]({key})['\"`]" | ||
# 支持 datasetT("your.i18n.keys") | ||
- "[^\\w\\d]datasetT\\(['\"`]({key})['\"`]" | ||
|
||
# A RegEx to set a custom scope range. This scope will be used as a prefix when detecting keys | ||
# and works like how the i18next framework identifies the namespace scope from the | ||
# useTranslation() hook. | ||
# You should unescape RegEx strings in order to fit in the YAML file | ||
# To help with this, you can use https://www.freeformatter.com/json-escape.html | ||
scopeRangeRegex: "useTranslation\\(\\s*\\[?\\s*['\"`](.*?)['\"`]" | ||
|
||
# An array of strings containing refactor templates. | ||
# The "$1" will be replaced by the keypath specified. | ||
# Optional: uncomment the following two lines to use | ||
|
||
# refactorTemplates: | ||
# - i18n.get("$1") | ||
|
||
|
||
# If set to true, only enables this custom framework (will disable all built-in frameworks) | ||
monopoly: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"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?", | ||
"Connection is invalid": "Connection is invalid", | ||
"Connection type is different": "Connection type is different", | ||
"Copy Module Config": "Copy Config", | ||
"Dataset Quote Template": "Knowledge Base QA Mode", | ||
"Export Config Successful": "Config copied, please check for important data", | ||
"Export Configs": "Export Configs", | ||
"Feedback Count": "User Feedback", | ||
"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", | ||
"My Apps": "My Apps", | ||
"Output Field Settings": "Output Field Settings", | ||
"Paste Config": "Paste Config", | ||
"To Chat": "Go to Chat", | ||
"To Settings": "View Details", | ||
"Variable Key Repeat Tip": "Variable key is duplicate", | ||
"module": { | ||
"Combine Modules": "Combine Modules", | ||
"Custom Title Tip": "This title will be displayed during the conversation", | ||
"My Modules": "My Modules", | ||
"No Modules": "No modules yet~", | ||
"System Module": "System Module", | ||
"type": "\"{{type}}\" type\n{{description}}" | ||
}, | ||
"modules": { | ||
"Title is required": "Module name cannot be empty" | ||
} | ||
} |
Oops, something went wrong.