Add specific strings for read/edit outside of the workspace (#1970)

This commit is contained in:
Matt Rubens 2025-03-25 10:10:38 -04:00 committed by GitHub
parent 1810efe496
commit 22d01ce67a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 38 additions and 2 deletions

View file

@ -272,7 +272,11 @@ export const ChatRowContent = ({
<>
<div style={headerStyle}>
{toolIcon(tool.tool === "appliedDiff" ? "diff" : "edit")}
<span style={{ fontWeight: "bold" }}>{t("chat:fileOperations.wantsToEdit")}</span>
<span style={{ fontWeight: "bold" }}>
{tool.isOutsideWorkspace
? t("chat:fileOperations.wantsToEditOutsideWorkspace")
: t("chat:fileOperations.wantsToEdit")}
</span>
</div>
<CodeAccordian
progressStatus={message.progressStatus}
@ -307,7 +311,9 @@ export const ChatRowContent = ({
{toolIcon("file-code")}
<span style={{ fontWeight: "bold" }}>
{message.type === "ask"
? t("chat:fileOperations.wantsToRead")
? tool.isOutsideWorkspace
? t("chat:fileOperations.wantsToReadOutsideWorkspace")
: t("chat:fileOperations.wantsToRead")
: t("chat:fileOperations.didRead")}
</span>
</div>

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo vol llegir aquest fitxer:",
"wantsToReadOutsideWorkspace": "Roo vol llegir aquest fitxer fora de l'espai de treball:",
"didRead": "Roo ha llegit aquest fitxer:",
"wantsToEdit": "Roo vol editar aquest fitxer:",
"wantsToEditOutsideWorkspace": "Roo vol editar aquest fitxer fora de l'espai de treball:",
"wantsToCreate": "Roo vol crear un nou fitxer:"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo möchte diese Datei lesen:",
"wantsToReadOutsideWorkspace": "Roo möchte diese Datei außerhalb des Arbeitsbereichs lesen:",
"didRead": "Roo hat diese Datei gelesen:",
"wantsToEdit": "Roo möchte diese Datei bearbeiten:",
"wantsToEditOutsideWorkspace": "Roo möchte diese Datei außerhalb des Arbeitsbereichs bearbeiten:",
"wantsToCreate": "Roo möchte eine neue Datei erstellen:"
},
"directoryOperations": {

View file

@ -105,8 +105,10 @@
},
"fileOperations": {
"wantsToRead": "Roo wants to read this file:",
"wantsToReadOutsideWorkspace": "Roo wants to read this file outside of the workspace:",
"didRead": "Roo read this file:",
"wantsToEdit": "Roo wants to edit this file:",
"wantsToEditOutsideWorkspace": "Roo wants to edit this file outside of the workspace:",
"wantsToCreate": "Roo wants to create a new file:"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo quiere leer este archivo:",
"wantsToReadOutsideWorkspace": "Roo quiere leer este archivo fuera del espacio de trabajo:",
"didRead": "Roo leyó este archivo:",
"wantsToEdit": "Roo quiere editar este archivo:",
"wantsToEditOutsideWorkspace": "Roo quiere editar este archivo fuera del espacio de trabajo:",
"wantsToCreate": "Roo quiere crear un nuevo archivo:"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo veut lire ce fichier :",
"wantsToReadOutsideWorkspace": "Roo veut lire ce fichier en dehors de l'espace de travail :",
"didRead": "Roo a lu ce fichier :",
"wantsToEdit": "Roo veut éditer ce fichier :",
"wantsToEditOutsideWorkspace": "Roo veut éditer ce fichier en dehors de l'espace de travail :",
"wantsToCreate": "Roo veut créer un nouveau fichier :"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo इस फ़ाइल को पढ़ना चाहता है:",
"wantsToReadOutsideWorkspace": "Roo कार्यक्षेत्र के बाहर इस फ़ाइल को पढ़ना चाहता है:",
"didRead": "Roo ने इस फ़ाइल को पढ़ा:",
"wantsToEdit": "Roo इस फ़ाइल को संपादित करना चाहता है:",
"wantsToEditOutsideWorkspace": "Roo कार्यक्षेत्र के बाहर इस फ़ाइल को संपादित करना चाहता है:",
"wantsToCreate": "Roo एक नई फ़ाइल बनाना चाहता है:"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo vuole leggere questo file:",
"wantsToReadOutsideWorkspace": "Roo vuole leggere questo file al di fuori dell'area di lavoro:",
"didRead": "Roo ha letto questo file:",
"wantsToEdit": "Roo vuole modificare questo file:",
"wantsToEditOutsideWorkspace": "Roo vuole modificare questo file al di fuori dell'area di lavoro:",
"wantsToCreate": "Roo vuole creare un nuovo file:"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Rooはこのファイルを読みたい:",
"wantsToReadOutsideWorkspace": "Rooはワークスペース外のこのファイルを読みたい:",
"didRead": "Rooはこのファイルを読みました:",
"wantsToEdit": "Rooはこのファイルを編集したい:",
"wantsToEditOutsideWorkspace": "Rooはワークスペース外のこのファイルを編集したい:",
"wantsToCreate": "Rooは新しいファイルを作成したい:"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo가 이 파일을 읽고 싶어합니다:",
"wantsToReadOutsideWorkspace": "Roo가 워크스페이스 외부의 이 파일을 읽고 싶어합니다:",
"didRead": "Roo가 이 파일을 읽었습니다:",
"wantsToEdit": "Roo가 이 파일을 편집하고 싶어합니다:",
"wantsToEditOutsideWorkspace": "Roo가 워크스페이스 외부의 이 파일을 편집하고 싶어합니다:",
"wantsToCreate": "Roo가 새 파일을 만들고 싶어합니다:"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo chce przeczytać ten plik:",
"wantsToReadOutsideWorkspace": "Roo chce przeczytać ten plik poza obszarem roboczym:",
"didRead": "Roo przeczytał ten plik:",
"wantsToEdit": "Roo chce edytować ten plik:",
"wantsToEditOutsideWorkspace": "Roo chce edytować ten plik poza obszarem roboczym:",
"wantsToCreate": "Roo chce utworzyć nowy plik:"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo quer ler este arquivo:",
"wantsToReadOutsideWorkspace": "Roo quer ler este arquivo fora do espaço de trabalho:",
"didRead": "Roo leu este arquivo:",
"wantsToEdit": "Roo quer editar este arquivo:",
"wantsToEditOutsideWorkspace": "Roo quer editar este arquivo fora do espaço de trabalho:",
"wantsToCreate": "Roo quer criar um novo arquivo:"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo bu dosyayı okumak istiyor:",
"wantsToReadOutsideWorkspace": "Roo çalışma alanı dışındaki bu dosyayı okumak istiyor:",
"didRead": "Roo bu dosyayı okudu:",
"wantsToEdit": "Roo bu dosyayı düzenlemek istiyor:",
"wantsToEditOutsideWorkspace": "Roo çalışma alanı dışındaki bu dosyayı düzenlemek istiyor:",
"wantsToCreate": "Roo yeni bir dosya oluşturmak istiyor:"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo muốn đọc tệp này:",
"wantsToReadOutsideWorkspace": "Roo muốn đọc tệp này bên ngoài không gian làm việc:",
"didRead": "Roo đã đọc tệp này:",
"wantsToEdit": "Roo muốn chỉnh sửa tệp này:",
"wantsToEditOutsideWorkspace": "Roo muốn chỉnh sửa tệp này bên ngoài không gian làm việc:",
"wantsToCreate": "Roo muốn tạo một tệp mới:"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo想读取此文件:",
"wantsToReadOutsideWorkspace": "Roo想读取此工作区外的文件:",
"didRead": "Roo已读取此文件:",
"wantsToEdit": "Roo想编辑此文件:",
"wantsToEditOutsideWorkspace": "Roo想编辑此工作区外的文件:",
"wantsToCreate": "Roo想创建新文件:"
},
"directoryOperations": {

View file

@ -107,8 +107,10 @@
},
"fileOperations": {
"wantsToRead": "Roo想讀取此檔案:",
"wantsToReadOutsideWorkspace": "Roo想讀取此工作區外的檔案:",
"didRead": "Roo已讀取此檔案:",
"wantsToEdit": "Roo想編輯此檔案:",
"wantsToEditOutsideWorkspace": "Roo想編輯此工作區外的檔案:",
"wantsToCreate": "Roo想創建新檔案:"
},
"directoryOperations": {