i18n: Refactor translation management tools and add ignore feature for dynamic resources

- Updated README.md to reflect changes in translation management tools and added ignore mark feature for dynamic resources.
- Created Chinese translation guide for the translation management tools.
- Created English translation guide for the translation management tools.
- Enhanced translation-cleaner.py to skip keys marked with /*keep*/ during cleanup.
- Improved translation-manager.py to create backups only when updating keys interactively.
- Updated zh_CN.json with new translations and added ignore marks for dynamic values.
This commit is contained in:
月月
2025-07-16 23:36:47 +08:00
parent 2ad60a40a8
commit 8a68cf207a
11 changed files with 145 additions and 98 deletions
+12 -2
View File
@@ -1,4 +1,11 @@
{
"Mo": "Mo/*keep*/",
"Tu": "Tu/*keep*/",
"We": "We/*keep*/",
"Th": "Th/*keep*/",
"Fr": "Fr/*keep*/",
"Sa": "Sa/*keep*/",
"Su": "Su/*keep*/",
"%1 characters": "%1 characters",
"**Pricing**: free. Data use policy varies depending on your OpenRouter account settings.\n\n**Instructions**: Log into OpenRouter account, go to Keys on the topright menu, click Create API Key": "**Pricing**: free. Data use policy varies depending on your OpenRouter account settings.\n\n**Instructions**: Log into OpenRouter account, go to Keys on the topright menu, click Create API Key",
"**Pricing**: free. Data used for training.\n\n**Instructions**: Log into Google account, allow AI Studio to create Google Cloud project or whatever it asks, go back and click Get API key": "**Pricing**: free. Data used for training.\n\n**Instructions**: Log into Google account, allow AI Studio to create Google Cloud project or whatever it asks, go back and click Get API key",
@@ -152,7 +159,6 @@
"Set the system prompt for the model.": "Set the system prompt for the model.",
"To Do": "To Do",
"Calendar": "Calendar",
"notifications": "notifications",
"Advanced": "Advanced",
"About": "About",
"Services": "Services",
@@ -306,5 +312,9 @@
"Page %1": "Page %1",
"Local Ollama model | %1": "Local Ollama model | %1",
"The current system prompt is\n\n---\n\n%1": "The current system prompt is\n\n---\n\n%1",
"Unknown function call: %1": "Unknown function call: %1"
"Unknown function call: %1": "Unknown function call: %1",
"%1 notifications": "%1 notifications",
"Save chat from %1": "Save chat from %1",
"Load chat from %1": "Load chat from %1",
"Load prompt from %1": "Load prompt from %1"
}