Skip to content

Commit

Permalink
🌐 feat(locale): Add fr-FR (lobehub#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 authored Dec 13, 2023
1 parent 56779ed commit 357141c
Show file tree
Hide file tree
Showing 37 changed files with 1,827 additions and 1,180 deletions.
14 changes: 13 additions & 1 deletion .i18nrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@ module.exports = defineConfig({
entry: 'locales/zh_CN',
entryLocale: 'zh_CN',
output: 'locales',
outputLocales: ['zh_TW', 'en_US', 'ru_RU', 'ja_JP', 'ko_KR'],
outputLocales: ['zh_TW', 'en_US', 'ru_RU', 'ja_JP', 'ko_KR', 'fr_FR'],
temperature: 0,
modelName: 'gpt-3.5-turbo-1106',
splitToken: 1024,
experimental: {
jsonMode: true,
},
markdown: {
entry: ['./README.md'],
outputLocales: ['zh_CN'],
outputExtensions: (locale) => {
if (locale === 'en_US') return '.md';
return `.${locale.replace('_', '-')}.md`;
},
},
});
63 changes: 30 additions & 33 deletions locales/en_US/chat.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
{
"agentDefaultMessage": "Hello, I'm **{{name}}**. You can start chatting with me right away or go to [Agent Settings](/chat/settings#session={{id}}) to improve my information.",
"agentDefaultMessageWithSystemRole": "Hello, I'm **{{name}}**, {{systemRole}}. Let's start the conversation!",
"backToBottom": "Go to Latest Messages",
"clearCurrentMessages": "Clear Current Session Messages",
"confirmClearCurrentMessages": "You are about to clear the current session messages. Once cleared, they cannot be recovered. Please confirm your operation.",
"confirmRemoveSessionItemAlert": "You are about to delete this agent. Once deleted, it cannot be recovered. Please confirm your operation.",
"defaultAgent": "Custom Agent",
"defaultSession": "Custom Agent",
"agentDefaultMessage": "Hello, I'm **{{name}}**. You can start chatting with me right away, or go to [Assistant Settings](/chat/settings#session={{id}}) to complete my information.",
"agentDefaultMessageWithSystemRole": "Hello, I'm **{{name}}**, {{systemRole}}. Let's start chatting!",
"backToBottom": "Back to Bottom",
"clearCurrentMessages": "Clear current session messages",
"confirmClearCurrentMessages": "You are about to clear the current session messages. Once cleared, they cannot be retrieved. Please confirm your action.",
"confirmRemoveSessionItemAlert": "You are about to delete this assistant. Once deleted, it cannot be retrieved. Please confirm your action.",
"defaultAgent": "Default Assistant",
"defaultSession": "Default Assistant",
"historyRange": "History Range",
"inbox": {
"defaultMessage": "Hello, I'm your intelligent agent. You can ask me any questions, and I will do my best to answer you. If you need a more professional or customized agent, you can click on `+` to create a custom agent.",
"desc": "Activate brain clusters and spark thinking. Your intelligent agent is here to communicate with you about everything.",
"title": "Chat Randomly"
"defaultMessage": "Hello, I'm your virtual assistant. You can ask me anything, and I'll do my best to answer you. If you need a more professional or customized assistant, click on `+` to create a custom assistant.",
"desc": "Activate the brain cluster and spark creative thinking. Your virtual assistant is here to communicate with you about everything.",
"title": "Just Chat"
},
"newAgent": "Create New Agent",
"newAgent": "New Assistant",
"noDescription": "No description available",
"pin": "Pin",
"pinOff": "Unpin",
"regenerate": "Regenerate",
"roleAndArchive": "Roles and Archives",
"searchAgentPlaceholder": "Search agents and conversations...",
"roleAndArchive": "Role and Archive",
"searchAgentPlaceholder": "Search assistants and conversations...",
"send": "Send",
"sendPlaceholder": "Enter chat content...",
"sessionList": "Agent List",
"sendPlaceholder": "Type your message here...",
"sessionList": "Assistant List",
"shareModal": {
"download": "Download Screenshot",
"imageType": "Image Format",
Expand All @@ -32,13 +32,13 @@
"withBackground": "Include Background Image",
"withFooter": "Include Footer",
"withPluginInfo": "Include Plugin Information",
"withSystemRole": "Include Agent Role Setting"
"withSystemRole": "Include Assistant Role Setting"
},
"stop": "Stop",
"stt": {
"action": "Voice Input",
"loading": "Recognizing...",
"prettifying": "Prettifying..."
"prettifying": "Polishing..."
},
"temp": "Temporary",
"tokenDetail": "Role Setting: {{systemRoleToken}} · Chat History: {{chatsToken}}",
Expand All @@ -48,33 +48,30 @@
"used": "Used"
},
"topic": {
"confirmRemoveAll": "You are about to delete all topics. Once deleted, they cannot be recovered. Please proceed with caution.",
"confirmRemoveTopic": "You are about to delete this topic. Once deleted, it cannot be recovered. Please proceed with caution.",
"confirmRemoveUnstarred": "You are about to delete unstarred topics. Once deleted, they cannot be recovered. Please proceed with caution.",
"defaultTitle": "Default Topic",
"saveCurrentMessages": "Save Current Session as Topic",
"searchPlaceholder": "Search topics...",
"deleteAll": "Delete All Topics",
"deleteUnstarred": "Delete Unstarred Topics",
"title": "Topic List",
"confirmRemoveAll": "All topics will be deleted and cannot be recovered. Please proceed with caution.",
"confirmRemoveUnstarred": "All unstarred topics will be deleted and cannot be recovered. Please proceed with caution.",
"openNewTopic": "Open New Topic",
"removeAll": "Remove All Topics",
"removeUnstarred": "Remove Unstarred Topics",
"openNewTopic": "Open a new topic"
"saveCurrentMessages": "Save current session as topic",
"searchPlaceholder": "Search topics...",
"title": "Topic List"
},
"translate": {
"clear": "Clear Translation",
"action": "Translate"
"action": "Translate",
"clear": "Clear Translation"
},
"translateTo": "Translate",
"tts": {
"action": "Text to Speech",
"action": "Text-to-Speech",
"clear": "Clear Speech"
},
"updateAgent": "Update Agent Information",
"updateAgent": "Update Assistant Information",
"upload": {
"actionTooltip": "Upload Image",
"dragDesc": "Drag and drop files here, supports uploading multiple images. Hold Shift to send images directly",
"dragDesc": "Drag and drop files here, support uploading multiple images. Hold down Shift to send images directly.",
"dragTitle": "Upload Image"
},
"warp": "Line Break"
"warp": "换行"
}
40 changes: 20 additions & 20 deletions locales/en_US/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@
"appInitializing": "LobeChat is initializing, please wait...",
"archive": "Archive",
"autoGenerate": "Auto Generate",
"autoGenerateTooltip": "Auto generate agent description based on prompts",
"autoGenerateTooltip": "Auto-generate assistant description based on prompts",
"cancel": "Cancel",
"changelog": "Changelog",
"close": "Close",
"confirmRemoveSessionItemAlert": "You are about to delete this agent. Once deleted, it cannot be recovered. Please confirm your action.",
"confirmRemoveSessionItemAlert": "You are about to delete this assistant. Once deleted, it cannot be recovered. Please confirm your action.",
"copy": "Copy",
"copySuccess": "Copy Successful",
"defaultAgent": "Custom Agent",
"defaultSession": "Custom Agent",
"copySuccess": "Copied successfully",
"defaultAgent": "Default Assistant",
"defaultSession": "Default Assistant",
"delete": "Delete",
"edit": "Edit",
"export": "Export Configuration",
"exportType": {
"agent": "Export Agent Settings",
"agentWithMessage": "Export Agent and Messages",
"all": "Export Global Settings and All Agent Data",
"allAgent": "Export All Agent Settings",
"allAgentWithMessage": "Export All Agents and Messages",
"agent": "Export Assistant Settings",
"agentWithMessage": "Export Assistant and Messages",
"all": "Export Global Settings and All Assistant Data",
"allAgent": "Export All Assistant Settings",
"allAgentWithMessage": "Export All Assistants and Messages",
"globalSetting": "Export Global Settings"
},
"feedback": "Feedback",
Expand All @@ -34,18 +34,18 @@
"finish": {
"onlySettings": "System settings imported successfully",
"start": "Start using",
"subTitle": "Data imported successfully, took {{duration}} seconds. Details of the import are as follows:",
"subTitle": "Data imported successfully, took {{duration}} seconds. Import details are as follows:",
"title": "Data import completed"
},
"loading": "Importing data, please wait patiently...",
"loading": "Data importing, please wait...",
"result": {
"added": "Imported successfully",
"errors": "Import errors",
"messages": "Messages",
"sessions": "Assistants",
"skips": "Skipped duplicates",
"skips": "Duplicates skipped",
"topics": "Topics",
"type": "Data type"
"type": "Data Type"
},
"title": "Import Data"
},
Expand All @@ -57,10 +57,11 @@
"ru-RU": "Russian",
"zh": "Simplified Chinese",
"zh-CN": "Simplified Chinese",
"zh-TW": "Traditional Chinese"
"zh-TW": "Traditional Chinese",
"fr-FR": "French"
},
"layoutInitializing": "Loading layout...",
"noDescription": "No description",
"layoutInitializing": "Initializing layout...",
"noDescription": "No description available",
"ok": "OK",
"password": "Password",
"pin": "Pin",
Expand All @@ -70,7 +71,6 @@
"reset": "Reset",
"retry": "Retry",
"send": "Send",
"sessionList": "Agent List",
"setting": "Settings",
"share": "Share",
"stop": "Stop",
Expand All @@ -80,10 +80,10 @@
"setting": "Settings"
},
"temp": "Temporary",
"updateAgent": "Update Agent Profile",
"updateAgent": "Update Agent Information",
"upgradeVersion": {
"action": "Upgrade Now",
"hasNew": "Update available",
"hasNew": "New update available",
"newVersion": "New version available: {{version}}"
}
}
Loading

0 comments on commit 357141c

Please sign in to comment.