Skip to content

Commit eadc71a

Browse files
hakonharnesHåkon Harnes
andauthored
fix: use translation for user settings menu item (#339)
Replace hardcoded "User Settings" string with translation key in sidebar user menu and add missing translations. Co-authored-by: Håkon Harnes <[email protected]>
1 parent 64f88cc commit eadc71a

7 files changed

Lines changed: 23 additions & 12 deletions

File tree

messages/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@
379379
"showAllChats": "View All Chats",
380380
"showLessChats": "Show less",
381381
"reportAnIssue": "Report an issue",
382-
"joinCommunity": "Join Community"
382+
"joinCommunity": "Join Community",
383+
"userSettings": "User Settings"
383384
},
384385
"Archive": {
385386
"title": "Archive",

messages/es.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@
187187
"userInstructions": "Instrucciones de Usuario",
188188
"userInstructionsDescription": "Preséntate y obtén una respuesta más personalizada.",
189189
"mcpInstructions": "Instrucciones MCP",
190-
"mcpInstructionsDescription": "Personaliza las instrucciones del servidor MCP."
190+
"mcpInstructionsDescription": "Personaliza las instrucciones del servidor MCP.",
191+
"userSettings": "Configuración de Usuario"
191192
}
192193
},
193194
"Layout": {
@@ -238,7 +239,8 @@
238239
"showLessChats": "Mostrar menos",
239240
"reportAnIssue": "Reportar un problema",
240241
"joinCommunity": "Unirse a la Comunidad",
241-
"workflow": "Flujo de Trabajo"
242+
"workflow": "Flujo de Trabajo",
243+
"userSettings": "Configuración de Usuario"
242244
},
243245
"Archive": {
244246
"title": "Archivo",

messages/fr.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@
187187
"userInstructions": "Instructions Utilisateur",
188188
"userInstructionsDescription": "Présentez-vous et obtenez une réponse plus personnalisée.",
189189
"mcpInstructions": "Instructions MCP",
190-
"mcpInstructionsDescription": "Personnalisez les instructions du serveur MCP."
190+
"mcpInstructionsDescription": "Personnalisez les instructions du serveur MCP.",
191+
"userSettings": "Paramètres Utilisateur"
191192
}
192193
},
193194
"Layout": {
@@ -238,7 +239,8 @@
238239
"showLessChats": "Afficher moins",
239240
"reportAnIssue": "Signaler un problème",
240241
"joinCommunity": "Rejoindre la Communauté",
241-
"workflow": "Flux de Travail"
242+
"workflow": "Flux de Travail",
243+
"userSettings": "Paramètres Utilisateur"
242244
},
243245
"Archive": {
244246
"title": "Archive",

messages/ja.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@
187187
"userInstructions": "ユーザー指示",
188188
"userInstructionsDescription": "自己紹介をして、よりパーソナライズされた回答を受け取りましょう。",
189189
"mcpInstructions": "MCP 指示",
190-
"mcpInstructionsDescription": "MCP サーバーの指示をカスタマイズします。"
190+
"mcpInstructionsDescription": "MCP サーバーの指示をカスタマイズします。",
191+
"userSettings": "ユーザー設定"
191192
}
192193
},
193194
"Layout": {
@@ -237,7 +238,8 @@
237238
"showLessChats": "少なく表示",
238239
"reportAnIssue": "問題を報告",
239240
"joinCommunity": "コミュニティに参加",
240-
"workflow": "ワークフロー"
241+
"workflow": "ワークフロー",
242+
"userSettings": "ユーザー設定"
241243
},
242244
"Archive": {
243245
"title": "アーカイブ",

messages/ko.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@
202202
"linkCopied": "링크가 클립보드에 복사되었습니다",
203203
"confirmDeleteExport": "이 공유를 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다.",
204204
"exportDeleted": "공유가 성공적으로 삭제되었습니다",
205-
"failedToDeleteExport": "공유 삭제에 실패했습니다"
205+
"failedToDeleteExport": "공유 삭제에 실패했습니다",
206+
"userSettings": "사용자 설정"
206207
}
207208
},
208209
"Layout": {
@@ -252,7 +253,8 @@
252253
"showAllChats": "모든 채팅",
253254
"showLessChats": "간략히 보기",
254255
"reportAnIssue": "도움 받기",
255-
"joinCommunity": "커뮤니티 가입"
256+
"joinCommunity": "커뮤니티 가입",
257+
"userSettings": "사용자 설정"
256258
},
257259
"Archive": {
258260
"title": "아카이브",

messages/zh.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@
186186
"userInstructions": "用户说明",
187187
"userInstructionsDescription": "介绍自己并获得更个性化的回应。",
188188
"mcpInstructions": "MCP 说明",
189-
"mcpInstructionsDescription": "自定义 MCP 服务器说明。"
189+
"mcpInstructionsDescription": "自定义 MCP 服务器说明。",
190+
"userSettings": "用户设置"
190191
}
191192
},
192193
"Layout": {
@@ -236,7 +237,8 @@
236237
"showLessChats": "显示更少",
237238
"reportAnIssue": "报告问题",
238239
"joinCommunity": "加入社区",
239-
"workflow": "工作流"
240+
"workflow": "工作流",
241+
"userSettings": "用户设置"
240242
},
241243
"Archive": {
242244
"title": "归档",

src/components/layouts/app-sidebar-user.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export function AppSidebarUserInner(props: {
164164
data-testid="user-settings-menu-item"
165165
>
166166
<Settings className="size-4 text-foreground" />
167-
<span>User Settings</span>
167+
<span>{t("userSettings")}</span>
168168
</DropdownMenuItem>
169169
<DropdownMenuSeparator />
170170
<DropdownMenuItem onClick={logout} className="cursor-pointer">

0 commit comments

Comments
 (0)