Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"project_rename": "Rename Project",
"project_copy": "Copy Project",
"fail_list_projects": "Failed to load the list of projects.",
"NO_PROJECT_SELECTED": "No project selected.",
"DEPLOY_FAILED": "Failed to deploy project.",
"DOWNLOAD_FAILED": "Failed to download project.",
"UPLOAD_FILE_NOT_BLOCKS": "{{filename}} is not a blocks file.",
"UPLOAD_FAILED": "Failed to upload project.",
"MECHANISM": "Mechanism",
"OPMODE": "OpMode",
"class_rule_description": "No spaces are allowed in the name. Each word in the name should start with a capital letter.",
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"project_rename": "Renombrar Proyecto",
"project_copy": "Copiar Proyecto",
"fail_list_projects": "Error al cargar la lista de proyectos.",
"NO_PROJECT_SELECTED": "No hay ningún proyecto seleccionado.",
"DEPLOY_FAILED": "Error al implementar el proyecto.",
"DOWNLOAD_FAILED": "Error al descargar el proyecto.",
"UPLOAD_FILE_NOT_BLOCKS": "{{filename}} no es un archivo de bloques.",
"UPLOAD_FAILED": "Error al cargar el proyecto.",
"MECHANISM": "Mecanismo",
"OPMODE": "OpMode",
"class_rule_description": "No se permiten espacios en el nombre. Cada palabra en el nombre debe comenzar con una letra mayúscula.",
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/locales/he/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"project_rename": "שנה שם פרויקט",
"project_copy": "העתק פרויקט",
"fail_list_projects": "נכשל בטעינת רשימת הפרויקטים.",
"NO_PROJECT_SELECTED": "לא נבחר פרויקט.",
"DEPLOY_FAILED": "פריסת הפרויקט נכשלה.",
"DOWNLOAD_FAILED": "הורדת הפרויקט נכשלה.",
"UPLOAD_FILE_NOT_BLOCKS": "{{filename}} אינו קובץ בלוקים.",
"UPLOAD_FAILED": "העלאת הפרויקט נכשלה.",
"MECHANISM": "מנגנון",
"OPMODE": "אופמוד",
"class_rule_description": "אסור שיהיו רווחים בשם. כל מילה בשם צריכה להתחיל באות גדולה.",
Expand Down
4 changes: 2 additions & 2 deletions src/reactComponents/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export function Component(props: MenuProps): React.JSX.Element {
URL.revokeObjectURL(blobUrl);
} catch (error) {
console.error('Failed to download project:', error);
props.setAlertErrorMessage(t('DOWNLOAD_FAILED') || 'Failed to download project');
props.setAlertErrorMessage(t('DOWNLOAD_FAILED'));
}
}

Expand All @@ -385,7 +385,7 @@ export function Component(props: MenuProps): React.JSX.Element {
const isBlocks = file.name.endsWith(storageNames.UPLOAD_DOWNLOAD_FILE_EXTENSION)
if (!isBlocks) {
// TODO: i18n
props.setAlertErrorMessage(file.name + ' is not a blocks file');
props.setAlertErrorMessage(t('UPLOAD_FILE_NOT_BLOCKS', { filename: file.name }));
return false;
}
return isBlocks || Antd.Upload.LIST_IGNORE;
Expand Down