-
+
{actions &&
{actions}
@@ -139,7 +140,7 @@ class DashboardView extends React.Component {
{this.isCollectionCreate() &&
@@ -176,6 +177,7 @@ DashboardView.propTypes = {
user: PropTypes.shape({
username: PropTypes.string,
}),
+ t: PropTypes.func.isRequired
};
-export default connect(mapStateToProps, mapDispatchToProps)(DashboardView);
+export default withTranslation()(connect(mapStateToProps, mapDispatchToProps)(DashboardView));
diff --git a/translations/locales/en-US/translations.json b/translations/locales/en-US/translations.json
index a9164b0f..7b0b7196 100644
--- a/translations/locales/en-US/translations.json
+++ b/translations/locales/en-US/translations.json
@@ -356,5 +356,116 @@
"Present": "Present",
"Fullscreen": "Fullscreen",
"Edit": "Edit"
+ },
+ "CollectionView": {
+ "TitleCreate": "Create collection",
+ "TitleDefault": "collection"
+ },
+ "Collection": {
+ "Title": "p5.js Web Editor | My collections",
+ "AnothersTitle": "p5.js Web Editor | {{anotheruser}}'s collections",
+ "Share": "Share",
+ "URLLink": "Link to Collection",
+ "AddSketch": "Add Sketch",
+ "DeleteFromCollection": "Are you sure you want to remove {{name_sketch}} from this collection?",
+ "SketchDeleted": "Sketch deleted",
+ "SketchRemoveARIA": "Remove sketch from collection",
+ "DescriptionPlaceholder": "Add description",
+ "Description": "description",
+ "NumSketches": "{{count}} sketch",
+ "NumSketches_plural": "{{count}} sketches",
+ "By":"Collection by ",
+ "NoSketches": "No sketches in collection",
+ "HeaderName": "Name",
+ "HeaderCreatedAt": "Date Added",
+ "HeaderUser": "Owner",
+ "DirectionAscendingARIA": "Ascending",
+ "DirectionDescendingARIA": "Descending",
+ "ButtonLabelAscendingARIA": "Sort by {{displayName}} ascending.",
+ "ButtonLabelDescendingARIA": "Sort by {{displayName}} descending."
+ },
+ "AddToCollectionList": {
+ "Title": "p5.js Web Editor | My collections",
+ "AnothersTitle": "p5.js Web Editor | {{anotheruser}}'s collections",
+ "Empty": "No collections"
+ },
+ "CollectionCreate": {
+ "Title": "p5.js Web Editor | Create collection",
+ "FormError": "Couldn't create collection",
+ "FormLabel": "Collection name",
+ "FormLabelARIA": "name",
+ "NameRequired": "Collection name is required",
+ "Description": "Description (optional)",
+ "DescriptionARIA": "description",
+ "DescriptionPlaceholder": "My fave sketches",
+ "SubmitCollectionCreate": "Create collection"
+ },
+ "DashboardView": {
+ "CreateCollection": "Create collection",
+ "NewSketch": "New sketch",
+ "CreateCollectionOverlay": "Create collection"
+ },
+ "DashboardTabSwitcher": {
+ "Sketches": "Sketches",
+ "Collections": "Collections",
+ "Assets": "Assets"
+ },
+ "CollectionList": {
+ "Title": "p5.js Web Editor | My collections",
+ "AnothersTitle": "p5.js Web Editor | {{anotheruser}}'s collections",
+ "NoCollections": "No collections.",
+ "HeaderName": "Name",
+ "HeaderCreatedAt": "Date Created",
+ "HeaderCreatedAt_mobile": "Created",
+ "HeaderUpdatedAt": "Date Updated",
+ "HeaderUpdatedAt_mobile": "Updated",
+ "HeaderNumItems": "# sketches",
+ "HeaderNumItems_mobile": "# sketches",
+ "DirectionAscendingARIA": "Ascending",
+ "DirectionDescendingARIA": "Descending",
+ "ButtonLabelAscendingARIA": "Sort by {{displayName}} ascending.",
+ "ButtonLabelDescendingARIA": "Sort by {{displayName}} descending.",
+ "AddSketch": "Add Sketch"
+ },
+ "CollectionListRow": {
+ "ToggleCollectionOptionsARIA": "Toggle Open/Close collection options",
+ "AddSketch": "Add sketch",
+ "Delete": "Delete",
+ "Rename": "Rename"
+ },
+ "Overlay": {
+ "AriaLabel": "Close {{title}} overlay"
+ },
+ "QuickAddList":{
+ "ButtonLabelRemove": "Remove from collection",
+ "ButtonLabelAddToCollection": "Add to collection",
+ "View": "View"
+ },
+ "SketchList": {
+ "View": "View",
+ "Title": "p5.js Web Editor | My sketches",
+ "AnothersTitle": "p5.js Web Editor | {{anotheruser}}'s sketches",
+ "ToggleLabelARIA": "Toggle Open/Close Sketch Options",
+ "DropdownRename": "Rename",
+ "DropdownDownload": "Download",
+ "DropdownDuplicate": "Duplicate",
+ "DropdownAddToCollection": "Add to collection",
+ "DropdownDelete": "Delete",
+ "DirectionAscendingARIA": "Ascending",
+ "DirectionDescendingARIA": "Descending",
+ "ButtonLabelAscendingARIA": "Sort by {{displayName}} ascending.",
+ "ButtonLabelDescendingARIA": "Sort by {{displayName}} descending.",
+ "AddToCollectionOverlayTitle": "Add to collection",
+ "HeaderName": "Sketch",
+ "HeaderCreatedAt": "Date Created",
+ "HeaderCreatedAt_mobile": "Created",
+ "HeaderUpdatedAt": "Date Updated",
+ "HeaderUpdatedAt_mobile": "Updated",
+ "NoSketches": "No sketches."
+ },
+ "AddToCollectionSketchList": {
+ "Title": "p5.js Web Editor | My sketches",
+ "AnothersTitle": "p5.js Web Editor | {{anotheruser}}'s sketches",
+ "NoCollections": "No collections."
}
}
diff --git a/translations/locales/es-419/translations.json b/translations/locales/es-419/translations.json
index f22edb9f..e9d314bf 100644
--- a/translations/locales/es-419/translations.json
+++ b/translations/locales/es-419/translations.json
@@ -200,7 +200,7 @@
"Error": "Error",
"Save": "Guardar",
"p5logoARIA": "Logo p5.js ",
- "DeleteConfirmation": "¿Estás que quieres borrar {{name}}?"
+ "DeleteConfirmation": "¿Estás seguro que quieres borrar {{name}}?"
},
"IDEView": {
"SubmitFeedback": "Enviar retroalimentación"
@@ -234,7 +234,7 @@
"ResetPasswordView": {
"Title": "Editor Web p5.js | Regenerar Contraseña",
"Reset": "Regenerar Contraseña",
- "Submitted": "Your password reset email should arrive shortly. If you don't see it, check\n in your spam folder as sometimes it can end up there.",
+ "Submitted": "Tu correo para regenerar la contraseña debe llegar pronto. Si no lo ves, revisa\n tu carpeta de spam puesto que algunas veces puede terminar ahí.",
"Login": "Ingresa",
"LoginOr": "o",
"SignUp": "Registráte"
@@ -282,7 +282,7 @@
"AccessTokensTab": "Tokens de acceso"
},
"APIKeyForm": {
- "ConfirmDelete": "¿Estas seguro que quieres borrar {{key_label}}?",
+ "ConfirmDelete": "¿Estás seguro que quieres borrar {{key_label}}?",
"Summary": " Los Tokens de acceso personal actuan como tu contraseña para permitir\n a scripts automáticos acceder al API del Editor. Crea un token por cada script \n que necesite acceso.",
"CreateToken": "Crear nuevo token",
"TokenLabel": "¿Para que es este token?",
@@ -356,5 +356,116 @@
"Present": "Presentar",
"Fullscreen": "Pantalla Completa",
"Edit": "Editar"
+ },
+ "CollectionView": {
+ "TitleCreate": "Crear colección",
+ "TitleDefault": "colección"
+ },
+ "Collection": {
+ "Title": "p5.js Web Editor | Mis colecciones",
+ "AnothersTitle": "Editor Web p5.js | Colecciones de {{anotheruser}}",
+ "Share": "Compartir",
+ "URLLink": "Liga a la Colección",
+ "AddSketch": "Agregar Bosquejo",
+ "DeleteFromCollection": "¿Estás seguro que quieres remover {{name_sketch}} de esta colección?",
+ "SketchDeleted": "El bosquejo fue eliminado",
+ "SketchRemoveARIA": "Remover bosquejo de la colección",
+ "DescriptionPlaceholder": "Agregar descripción",
+ "Description": "descripción",
+ "NumSketches": "{{count}} bosquejo",
+ "NumSketches_plural": "{{count}} bosquejos",
+ "By":"Colección por ",
+ "NoSketches": "No hay bosquejos en la colección",
+ "HeaderName": "Nombre",
+ "HeaderCreatedAt": "Fecha de agregación",
+ "HeaderUser": "Propietario",
+ "DirectionAscendingARIA": "Ascendente",
+ "DirectionDescendingARIA": "Descendente",
+ "ButtonLabelAscendingARIA": "Ordenar por {{displayName}} ascendente.",
+ "ButtonLabelDescendingARIA": "Ordenar por {{displayName}} descendente."
+ },
+ "AddToCollectionList": {
+ "Title": "p5.js Web Editor | Mis colecciones",
+ "AnothersTitle": "Editor Web p5.js | Colecciones de {{anotheruser}}",
+ "Empty": "No hay colecciones"
+ },
+ "CollectionCreate": {
+ "Title": "Editor Web p5.js | Crear colección",
+ "FormError": "No se pudo crear colección",
+ "FormLabel": "Nombre colección ",
+ "FormLabelARIA": "nombre de la colección",
+ "NameRequired": "Se requiere nombre de colección",
+ "Description": "Descripción (opcional)",
+ "DescriptionARIA": "descripción",
+ "DescriptionPlaceholder": "Mis bosquejos favoritos",
+ "SubmitCollectionCreate": "Crear colección"
+ },
+ "DashboardView": {
+ "CreateCollection": "Crear colección",
+ "NewSketch": "Nuevo bosquejo",
+ "CreateCollectionOverlay": "Crear colección"
+ },
+ "DashboardTabSwitcher": {
+ "Sketches": "Bosquejos",
+ "Collections": "Colecciones ",
+ "Assets": "Assets"
+ },
+ "CollectionList": {
+ "Title": "p5.js Web Editor | Mis colecciones",
+ "AnothersTitle": "Editor Web p5.js | Colecciones de {{anotheruser}}",
+ "NoCollections": "No hay colecciones.",
+ "HeaderName": "Nombre",
+ "HeaderCreatedAt": "Fecha Creación",
+ "HeaderCreatedAt_mobile": "Creación",
+ "HeaderUpdatedAt": "Fecha Actualización",
+ "HeaderUpdatedAt_mobile": "Actualización",
+ "HeaderNumItems": "# bosquejos",
+ "HeaderNumItems_mobile": "Bosquejos",
+ "DirectionAscendingARIA": "Ascendente",
+ "DirectionDescendingARIA": "Descendente",
+ "ButtonLabelAscendingARIA": "Ordenar por {{displayName}} ascendente.",
+ "ButtonLabelDescendingARIA": "Ordenar por {{displayName}} descendente.",
+ "AddSketch": "Agregar Bosquejo"
+ },
+ "CollectionListRow": {
+ "ToggleCollectionOptionsARIA": "Alternar Abrir/Cerrar opciones de colección",
+ "AddSketch": "Agregar bosquejo",
+ "Delete": "Borrar",
+ "Rename": "Renombrar"
+ },
+ "Overlay": {
+ "AriaLabel": "Cerrar la capa {{title}}"
+ },
+ "QuickAddList":{
+ "ButtonLabelRemove": "Remove from collection",
+ "ButtonLabelAddToCollection": "Add to collection",
+ "View": "Ver"
+ },
+ "SketchList": {
+ "View": "Ver",
+ "Title": "p5.js Web Editor | Mis bosquejos",
+ "AnothersTitle": "Editor Web p5.js | Bosquejos de {{anotheruser}}",
+ "ToggleLabelARIA": "Alternar Abrir/Cerrar Opciones de Bosquejo",
+ "DropdownRename": "Renombrar",
+ "DropdownDownload": "Descargar",
+ "DropdownDuplicate": "Duplicar",
+ "DropdownAddToCollection": "Agregar a Colección",
+ "DropdownDelete": "Borrar",
+ "DirectionAscendingARIA": "Ascendente",
+ "DirectionDescendingARIA": "Descendente",
+ "ButtonLabelAscendingARIA": "Ordenar por {{displayName}} ascendente.",
+ "ButtonLabelDescendingARIA": "Ordenar por {{displayName}} descendente.",
+ "AddToCollectionOverlayTitle": "Agregar a colección",
+ "HeaderName": "Bosquejo",
+ "HeaderCreatedAt": "Fecha Creación",
+ "HeaderCreatedAt_mobile": "Creación",
+ "HeaderUpdatedAt": "Fecha Actualización",
+ "HeaderUpdatedAt_mobile": "Actualización",
+ "NoSketches": "No hay bosquejos."
+ },
+ "AddToCollectionSketchList": {
+ "Title": "p5.js Web Editor | Mis bosquejos",
+ "AnothersTitle": "Editor Web p5.js | Bosquejos de {{anotheruser}}",
+ "NoCollections": "No hay colecciones."
}
}