diff --git a/packages/webapp/README.md b/packages/webapp/README.md index a636fc7a..43abe3c9 100644 --- a/packages/webapp/README.md +++ b/packages/webapp/README.md @@ -42,7 +42,7 @@ You don’t have to ever use `eject`. The curated feature set is suitable for sm # Generate I18n resource ## Extract -`yarn extract 'src/**/*.ts*' --out-file lang/en.json` +`yarn extract` ## Compile `yarn compile lang/en.json --ast --out-file src/compiled-lang/en.json` diff --git a/packages/webapp/lang/de.json b/packages/webapp/lang/de.json new file mode 100644 index 00000000..94dd88a7 --- /dev/null +++ b/packages/webapp/lang/de.json @@ -0,0 +1,471 @@ +{ + "account.delete-warning": { + "defaultMessage": "Keep in mind that you will not be able retrieve any mindmap you have added. All your information will be deleted and it can not be restored." + }, + "accountinfo.button": { + "defaultMessage": "Accept" + }, + "accountinfo.email": { + "defaultMessage": "Email" + }, + "accountinfo.firstname": { + "defaultMessage": "First Name" + }, + "accountinfo.lastname": { + "defaultMessage": "Last Name" + }, + "accountinfo.title": { + "defaultMessage": "Account info" + }, + "action.cancel-button": { + "defaultMessage": "Cancel" + }, + "action.close-button": { + "defaultMessage": "Close" + }, + "action.delete": { + "defaultMessage": "Delete" + }, + "action.delete-description": { + "defaultMessage": "Deleted mindmap can not be recovered. Do you want to continue ?." + }, + "action.delete-title": { + "defaultMessage": "Delete" + }, + "action.duplicate": { + "defaultMessage": "Duplicate" + }, + "action.export": { + "defaultMessage": "Export" + }, + "action.history": { + "defaultMessage": "History" + }, + "action.history-description": { + "defaultMessage": "List of changes introduced in the last 90 days." + }, + "action.history-title": { + "defaultMessage": "Version history" + }, + "action.import": { + "defaultMessage": "Import" + }, + "action.info": { + "defaultMessage": "Info" + }, + "action.label": { + "defaultMessage": "Add Label" + }, + "action.new": { + "defaultMessage": "New Map" + }, + "action.open": { + "defaultMessage": "Open" + }, + "action.print": { + "defaultMessage": "Print" + }, + "action.publish": { + "defaultMessage": "Publish" + }, + "action.rename": { + "defaultMessage": "Rename" + }, + "action.rename-description-placeholder": { + "defaultMessage": "Description" + }, + "action.rename-name-placeholder": { + "defaultMessage": "Name" + }, + "action.share": { + "defaultMessage": "Share" + }, + "changepwd.button": { + "defaultMessage": "Change" + }, + "changepwd.confirm-password": { + "defaultMessage": "Confirm Password" + }, + "changepwd.description": { + "defaultMessage": "Please, provide the new password for your account." + }, + "changepwd.password": { + "defaultMessage": "Password" + }, + "changepwd.password-match": { + "defaultMessage": "Password do not match. Please, try again." + }, + "changepwd.title": { + "defaultMessage": "Change Password" + }, + "common.wait": { + "defaultMessage": "Please wait ..." + }, + "create.button": { + "defaultMessage": "Create" + }, + "create.description": { + "defaultMessage": "Please, fill the new map name and description." + }, + "create.title": { + "defaultMessage": "Create a new mindmap." + }, + "deletem.title": { + "defaultMessage": "All selected maps will be deleted" + }, + "duplicate.title": { + "defaultMessage": "Duplicate" + }, + "expired.description": { + "defaultMessage": "Your current session has expired. Please, sign in and try again." + }, + "expired.title": { + "defaultMessage": "Your session has expired" + }, + "export.desc": { + "defaultMessage": "Export this map in the format that you want and start using it in your presentations or sharing by email" + }, + "export.document": { + "defaultMessage": "Mindmap Tools: Export your mindmap in thirdparty mindmap tool formats" + }, + "export.document-label": { + "defaultMessage": "Document: Export your mindmap in a self-contained document ready to share" + }, + "export.image": { + "defaultMessage": "Image: Get a graphic representation of your map including all colors and shapes." + }, + "export.title": { + "defaultMessage": "Export" + }, + "export.warning": { + "defaultMessage": "Exporting to Image (SVG,PNG,JPEG,PDF) is only available in the editor toolbar." + }, + "footer.aboutus": { + "defaultMessage": "About Us" + }, + "footer.contactus": { + "defaultMessage": "Contact Us" + }, + "footer.faq": { + "defaultMessage": "F.A.Q." + }, + "footer.faqandhelp": { + "defaultMessage": "Help & FAQ" + }, + "footer.feedback": { + "defaultMessage": "Feedback" + }, + "footer.opensource": { + "defaultMessage": "Open Source" + }, + "footer.others": { + "defaultMessage": "Others" + }, + "footer.termsandconditions": { + "defaultMessage": "Term And Conditions" + }, + "forgot.desc": { + "defaultMessage": "We will send you an email to reset your password." + }, + "forgot.email": { + "defaultMessage": "Email" + }, + "forgot.page-title": { + "defaultMessage": "Forgot Password | WiseMapping" + }, + "forgot.register": { + "defaultMessage": "Send recovery link" + }, + "forgot.success.desc": { + "defaultMessage": "We've sent you an email that will allow you to reset your password. You should receive it in the next minutes." + }, + "forgot.success.title": { + "defaultMessage": "Your temporal password has been sent." + }, + "forgot.title": { + "defaultMessage": "Reset your password" + }, + "forgotsuccess.page-title": { + "defaultMessage": "Password Recovered | WiseMapping" + }, + "header.donthaveaccount": { + "defaultMessage": "Don't have an account ?" + }, + "header.haveaccount": { + "defaultMessage": "Already have an account?" + }, + "help.support": { + "defaultMessage": "Support" + }, + "history.no-changes": { + "defaultMessage": "There is no changes available" + }, + "import.button": { + "defaultMessage": "Create" + }, + "import.description": { + "defaultMessage": "You can import FreeMind 1.0.1 and WiseMapping maps to your list of maps. Select the file you want to import." + }, + "import.title": { + "defaultMessage": "Import existing mindmap" + }, + "info.basic-info": { + "defaultMessage": "Basic Info" + }, + "info.button": { + "defaultMessage": "Accept" + }, + "info.creation-time": { + "defaultMessage": "Creation Date" + }, + "info.creator": { + "defaultMessage": "Creator" + }, + "info.description": { + "defaultMessage": "Description" + }, + "info.description-msg": { + "defaultMessage": "By publishing the map you make it visible to everyone on the Internet." + }, + "info.modified-time": { + "defaultMessage": "Last Modified Date" + }, + "info.modified-tny": { + "defaultMessage": "Last Modified By" + }, + "info.name": { + "defaultMessage": "Name" + }, + "info.public-visibility": { + "defaultMessage": "Publicly Visible" + }, + "info.sharing": { + "defaultMessage": "Sharing" + }, + "info.starred": { + "defaultMessage": "Starred" + }, + "info.title": { + "defaultMessage": "Info" + }, + "language.change": { + "defaultMessage": "Change Language" + }, + "language.help": { + "defaultMessage": "Help to Translate" + }, + "login.desc": { + "defaultMessage": "Log into your account" + }, + "login.email": { + "defaultMessage": "Email" + }, + "login.error": { + "defaultMessage": "The email address or password you entered is not valid." + }, + "login.forgotpwd": { + "defaultMessage": "Forgot Password ?" + }, + "login.hsqldbcofig": { + "defaultMessage": "Although HSQLDB is bundled with WiseMapping by default during the installation, we do not recommend this database for production use. Please consider using MySQL 5.7 instead. You can find more information how to configure MySQL", + "description": "Missing production database configured" + }, + "login.page-title": { + "defaultMessage": "Login | WiseMapping" + }, + "login.password": { + "defaultMessage": "Password" + }, + "login.remberme": { + "defaultMessage": "Remember me" + }, + "login.signin": { + "defaultMessage": "Sign In" + }, + "login.signup": { + "defaultMessage": "Sign Up" + }, + "login.title": { + "defaultMessage": "Welcome" + }, + "login.userinactive": { + "defaultMessage": "Sorry, your account has not been activated yet. You'll receive a notification email when it becomes active. Stay tuned!." + }, + "map.creator": { + "defaultMessage": "Creator" + }, + "map.delete-selected": { + "defaultMessage": "Delete selected" + }, + "map.last-update": { + "defaultMessage": "Last Update" + }, + "map.more-actions": { + "defaultMessage": "More Actions" + }, + "map.name": { + "defaultMessage": "Name" + }, + "map.tooltip-add": { + "defaultMessage": "Add label to selected" + }, + "maps.choose-file": { + "defaultMessage": "Choose a file" + }, + "maps.create-tooltip": { + "defaultMessage": "Create a New Map" + }, + "maps.empty-result": { + "defaultMessage": "No matching record found with the current filter criteria." + }, + "maps.import-desc": { + "defaultMessage": "Import from other tools" + }, + "maps.modified": { + "defaultMessage": "Modified" + }, + "maps.modified-by": { + "defaultMessage": "Modified By" + }, + "maps.modified-by-desc": { + "defaultMessage": "Modified by {by} on {on}" + }, + "maps.nav-all": { + "defaultMessage": "All" + }, + "maps.nav-onwned": { + "defaultMessage": "Owned" + }, + "maps.nav-public": { + "defaultMessage": "Public" + }, + "maps.nav-shared": { + "defaultMessage": "Shared with me" + }, + "maps.nav-starred": { + "defaultMessage": "Starred" + }, + "maps.page-title": { + "defaultMessage": "My Maps | WiseMapping" + }, + "maps.revert": { + "defaultMessage": "Revert" + }, + "maps.search-action": { + "defaultMessage": "Search ..." + }, + "maps.tooltip-open": { + "defaultMessage": "Open for edition" + }, + "maps.tooltip-starred": { + "defaultMessage": "Starred" + }, + "maps.view": { + "defaultMessage": "View" + }, + "menu.account": { + "defaultMessage": "Account" + }, + "menu.change-password": { + "defaultMessage": "Change password" + }, + "menu.signout": { + "defaultMessage": "Sign Out" + }, + "publish.button": { + "defaultMessage": "Accept" + }, + "publish.checkbox": { + "defaultMessage": "Enable public sharing" + }, + "publish.description": { + "defaultMessage": "By publishing the map you make it visible to everyone on the Internet." + }, + "publish.embedded": { + "defaultMessage": "Embedded" + }, + "publish.embedded-msg": { + "defaultMessage": "Copy this snippet of code to embed in your blog or page:" + }, + "publish.public-url": { + "defaultMessage": "Public URL" + }, + "publish.public-url-msg": { + "defaultMessage": "Copy and paste the link below to share your map with colleagues:" + }, + "publish.title": { + "defaultMessage": "Publish" + }, + "registation.success-title": { + "defaultMessage": "Registation Success | WiseMapping" + }, + "registration.desc": { + "defaultMessage": "Signing up is free and just take a moment" + }, + "registration.email": { + "defaultMessage": "Email" + }, + "registration.firstname": { + "defaultMessage": "First Name" + }, + "registration.lastname": { + "defaultMessage": "Last Name" + }, + "registration.password": { + "defaultMessage": "Password" + }, + "registration.register": { + "defaultMessage": "Register" + }, + "registration.success.desc": { + "defaultMessage": "Click 'Sign In' button below and start creating mind maps." + }, + "registration.termandconditions": { + "defaultMessage": "Terms of Client: Please check the WiseMapping Account information you've entered above, and review the Terms of Client here. By clicking on 'Register' below you are agreeing to the Terms of Client above and the Privacy Policy" + }, + "registration.title": { + "defaultMessage": "Become a member" + }, + "rename.description": { + "defaultMessage": "Please, fill the new map name and description." + }, + "rename.title": { + "defaultMessage": "Rename" + }, + "resetpassword.success.title": { + "defaultMessage": "Your account has been created successfully" + }, + "role.editor": { + "defaultMessage": "Editor" + }, + "role.owner": { + "defaultMessage": "Onwer" + }, + "role.viewer": { + "defaultMessage": "Viewer" + }, + "share.add-button": { + "defaultMessage": "Add" + }, + "share.add-message": { + "defaultMessage": "Add message" + }, + "share.can-edit": { + "defaultMessage": "Can edit" + }, + "share.can-view": { + "defaultMessage": "Can view" + }, + "share.delete": { + "defaultMessage": "Delete collaborator" + }, + "share.delete-description": { + "defaultMessage": "Invite people to collaborate with you in the creation of your midnmap. They will be notified by email." + }, + "share.delete-title": { + "defaultMessage": "Share with people" + }, + "share.message": { + "defaultMessage": "Message" + } +} \ No newline at end of file diff --git a/packages/webapp/lang/en.json b/packages/webapp/lang/en.json index 80af1285..94dd88a7 100644 --- a/packages/webapp/lang/en.json +++ b/packages/webapp/lang/en.json @@ -108,7 +108,7 @@ "defaultMessage": "Please, fill the new map name and description." }, "create.title": { - "defaultMessage": "Create a new mindmap" + "defaultMessage": "Create a new mindmap." }, "deletem.title": { "defaultMessage": "All selected maps will be deleted" @@ -122,6 +122,9 @@ "expired.title": { "defaultMessage": "Your session has expired" }, + "export.desc": { + "defaultMessage": "Export this map in the format that you want and start using it in your presentations or sharing by email" + }, "export.document": { "defaultMessage": "Mindmap Tools: Export your mindmap in thirdparty mindmap tool formats" }, @@ -162,23 +165,29 @@ "defaultMessage": "Term And Conditions" }, "forgot.desc": { - "defaultMessage": "We will send you an email to reset your password" + "defaultMessage": "We will send you an email to reset your password." }, "forgot.email": { "defaultMessage": "Email" }, + "forgot.page-title": { + "defaultMessage": "Forgot Password | WiseMapping" + }, "forgot.register": { "defaultMessage": "Send recovery link" }, "forgot.success.desc": { - "defaultMessage": "We've sent you an email that will allow you to reset your password. Please check your email now." + "defaultMessage": "We've sent you an email that will allow you to reset your password. You should receive it in the next minutes." }, "forgot.success.title": { - "defaultMessage": "Your temporal password has been sent" + "defaultMessage": "Your temporal password has been sent." }, "forgot.title": { "defaultMessage": "Reset your password" }, + "forgotsuccess.page-title": { + "defaultMessage": "Password Recovered | WiseMapping" + }, "header.donthaveaccount": { "defaultMessage": "Don't have an account ?" }, @@ -261,6 +270,9 @@ "defaultMessage": "Although HSQLDB is bundled with WiseMapping by default during the installation, we do not recommend this database for production use. Please consider using MySQL 5.7 instead. You can find more information how to configure MySQL", "description": "Missing production database configured" }, + "login.page-title": { + "defaultMessage": "Login | WiseMapping" + }, "login.password": { "defaultMessage": "Password" }, @@ -282,6 +294,9 @@ "map.creator": { "defaultMessage": "Creator" }, + "map.delete-selected": { + "defaultMessage": "Delete selected" + }, "map.last-update": { "defaultMessage": "Last Update" }, @@ -291,6 +306,9 @@ "map.name": { "defaultMessage": "Name" }, + "map.tooltip-add": { + "defaultMessage": "Add label to selected" + }, "maps.choose-file": { "defaultMessage": "Choose a file" }, @@ -309,9 +327,39 @@ "maps.modified-by": { "defaultMessage": "Modified By" }, + "maps.modified-by-desc": { + "defaultMessage": "Modified by {by} on {on}" + }, + "maps.nav-all": { + "defaultMessage": "All" + }, + "maps.nav-onwned": { + "defaultMessage": "Owned" + }, + "maps.nav-public": { + "defaultMessage": "Public" + }, + "maps.nav-shared": { + "defaultMessage": "Shared with me" + }, + "maps.nav-starred": { + "defaultMessage": "Starred" + }, + "maps.page-title": { + "defaultMessage": "My Maps | WiseMapping" + }, "maps.revert": { "defaultMessage": "Revert" }, + "maps.search-action": { + "defaultMessage": "Search ..." + }, + "maps.tooltip-open": { + "defaultMessage": "Open for edition" + }, + "maps.tooltip-starred": { + "defaultMessage": "Starred" + }, "maps.view": { "defaultMessage": "View" }, @@ -348,6 +396,9 @@ "publish.title": { "defaultMessage": "Publish" }, + "registation.success-title": { + "defaultMessage": "Registation Success | WiseMapping" + }, "registration.desc": { "defaultMessage": "Signing up is free and just take a moment" }, diff --git a/packages/webapp/lang/es.json b/packages/webapp/lang/es.json index af2755a8..94dd88a7 100644 --- a/packages/webapp/lang/es.json +++ b/packages/webapp/lang/es.json @@ -1,60 +1,471 @@ { - "footer.aboutus": { - "defaultMessage": "Sobre Nosotros" - }, - "footer.contactus": { - "defaultMessage": "Contáctenos" - }, - "footer.donations": { - "defaultMessage": "Donaciones" - }, - "header.donthaveaccount": { - "defaultMessage": "No tienes una cuenta ?" - }, - "login.email": { - "defaultMessage": "Email" - }, - "footer.faq": { - "defaultMessage": "Preguntas Frecuentes" - }, - "footer.feedback": { - "defaultMessage": "Feedback" - }, - "login.forgotpwd": { - "defaultMessage": "Olvidaste la contraseña ?" - }, - "login.error": { - "defaultMessage": "El email o la contraseña no es valida." - }, - "login.loginto": { - "defaultMessage": "Ingresar a tu Cuenta" - }, - "login.hsqldbcofig": { - "defaultMessage": "Warning: Although HSQLDB is bundled with WiseMapping by default during the installation, we do not recommend this database for production use. Please consider using MySQL 5.7 instead. You can find more information how to configure MySQL", - "description": "Missing production database configured" - }, - "footer.opensource": { - "defaultMessage": "Open Source" - }, - "login.password": { - "defaultMessage": "Contraseña" - }, - "login.remberme": { - "defaultMessage": "Recordarme" - }, - "login.signin": { - "defaultMessage": "Ingresar" - }, - "login.signup": { - "defaultMessage": "Registrarse" - }, - "footer.termsandconditions": { - "defaultMessage": "Terminos y Condiciones" - }, - "login.userinactive": { - "defaultMessage": "Sorry, your account has not been activated yet. You'll receive a notification email when it becomes active. Stay tuned!." - }, - "login.welcome": { - "defaultMessage": "Bienvenido" - } + "account.delete-warning": { + "defaultMessage": "Keep in mind that you will not be able retrieve any mindmap you have added. All your information will be deleted and it can not be restored." + }, + "accountinfo.button": { + "defaultMessage": "Accept" + }, + "accountinfo.email": { + "defaultMessage": "Email" + }, + "accountinfo.firstname": { + "defaultMessage": "First Name" + }, + "accountinfo.lastname": { + "defaultMessage": "Last Name" + }, + "accountinfo.title": { + "defaultMessage": "Account info" + }, + "action.cancel-button": { + "defaultMessage": "Cancel" + }, + "action.close-button": { + "defaultMessage": "Close" + }, + "action.delete": { + "defaultMessage": "Delete" + }, + "action.delete-description": { + "defaultMessage": "Deleted mindmap can not be recovered. Do you want to continue ?." + }, + "action.delete-title": { + "defaultMessage": "Delete" + }, + "action.duplicate": { + "defaultMessage": "Duplicate" + }, + "action.export": { + "defaultMessage": "Export" + }, + "action.history": { + "defaultMessage": "History" + }, + "action.history-description": { + "defaultMessage": "List of changes introduced in the last 90 days." + }, + "action.history-title": { + "defaultMessage": "Version history" + }, + "action.import": { + "defaultMessage": "Import" + }, + "action.info": { + "defaultMessage": "Info" + }, + "action.label": { + "defaultMessage": "Add Label" + }, + "action.new": { + "defaultMessage": "New Map" + }, + "action.open": { + "defaultMessage": "Open" + }, + "action.print": { + "defaultMessage": "Print" + }, + "action.publish": { + "defaultMessage": "Publish" + }, + "action.rename": { + "defaultMessage": "Rename" + }, + "action.rename-description-placeholder": { + "defaultMessage": "Description" + }, + "action.rename-name-placeholder": { + "defaultMessage": "Name" + }, + "action.share": { + "defaultMessage": "Share" + }, + "changepwd.button": { + "defaultMessage": "Change" + }, + "changepwd.confirm-password": { + "defaultMessage": "Confirm Password" + }, + "changepwd.description": { + "defaultMessage": "Please, provide the new password for your account." + }, + "changepwd.password": { + "defaultMessage": "Password" + }, + "changepwd.password-match": { + "defaultMessage": "Password do not match. Please, try again." + }, + "changepwd.title": { + "defaultMessage": "Change Password" + }, + "common.wait": { + "defaultMessage": "Please wait ..." + }, + "create.button": { + "defaultMessage": "Create" + }, + "create.description": { + "defaultMessage": "Please, fill the new map name and description." + }, + "create.title": { + "defaultMessage": "Create a new mindmap." + }, + "deletem.title": { + "defaultMessage": "All selected maps will be deleted" + }, + "duplicate.title": { + "defaultMessage": "Duplicate" + }, + "expired.description": { + "defaultMessage": "Your current session has expired. Please, sign in and try again." + }, + "expired.title": { + "defaultMessage": "Your session has expired" + }, + "export.desc": { + "defaultMessage": "Export this map in the format that you want and start using it in your presentations or sharing by email" + }, + "export.document": { + "defaultMessage": "Mindmap Tools: Export your mindmap in thirdparty mindmap tool formats" + }, + "export.document-label": { + "defaultMessage": "Document: Export your mindmap in a self-contained document ready to share" + }, + "export.image": { + "defaultMessage": "Image: Get a graphic representation of your map including all colors and shapes." + }, + "export.title": { + "defaultMessage": "Export" + }, + "export.warning": { + "defaultMessage": "Exporting to Image (SVG,PNG,JPEG,PDF) is only available in the editor toolbar." + }, + "footer.aboutus": { + "defaultMessage": "About Us" + }, + "footer.contactus": { + "defaultMessage": "Contact Us" + }, + "footer.faq": { + "defaultMessage": "F.A.Q." + }, + "footer.faqandhelp": { + "defaultMessage": "Help & FAQ" + }, + "footer.feedback": { + "defaultMessage": "Feedback" + }, + "footer.opensource": { + "defaultMessage": "Open Source" + }, + "footer.others": { + "defaultMessage": "Others" + }, + "footer.termsandconditions": { + "defaultMessage": "Term And Conditions" + }, + "forgot.desc": { + "defaultMessage": "We will send you an email to reset your password." + }, + "forgot.email": { + "defaultMessage": "Email" + }, + "forgot.page-title": { + "defaultMessage": "Forgot Password | WiseMapping" + }, + "forgot.register": { + "defaultMessage": "Send recovery link" + }, + "forgot.success.desc": { + "defaultMessage": "We've sent you an email that will allow you to reset your password. You should receive it in the next minutes." + }, + "forgot.success.title": { + "defaultMessage": "Your temporal password has been sent." + }, + "forgot.title": { + "defaultMessage": "Reset your password" + }, + "forgotsuccess.page-title": { + "defaultMessage": "Password Recovered | WiseMapping" + }, + "header.donthaveaccount": { + "defaultMessage": "Don't have an account ?" + }, + "header.haveaccount": { + "defaultMessage": "Already have an account?" + }, + "help.support": { + "defaultMessage": "Support" + }, + "history.no-changes": { + "defaultMessage": "There is no changes available" + }, + "import.button": { + "defaultMessage": "Create" + }, + "import.description": { + "defaultMessage": "You can import FreeMind 1.0.1 and WiseMapping maps to your list of maps. Select the file you want to import." + }, + "import.title": { + "defaultMessage": "Import existing mindmap" + }, + "info.basic-info": { + "defaultMessage": "Basic Info" + }, + "info.button": { + "defaultMessage": "Accept" + }, + "info.creation-time": { + "defaultMessage": "Creation Date" + }, + "info.creator": { + "defaultMessage": "Creator" + }, + "info.description": { + "defaultMessage": "Description" + }, + "info.description-msg": { + "defaultMessage": "By publishing the map you make it visible to everyone on the Internet." + }, + "info.modified-time": { + "defaultMessage": "Last Modified Date" + }, + "info.modified-tny": { + "defaultMessage": "Last Modified By" + }, + "info.name": { + "defaultMessage": "Name" + }, + "info.public-visibility": { + "defaultMessage": "Publicly Visible" + }, + "info.sharing": { + "defaultMessage": "Sharing" + }, + "info.starred": { + "defaultMessage": "Starred" + }, + "info.title": { + "defaultMessage": "Info" + }, + "language.change": { + "defaultMessage": "Change Language" + }, + "language.help": { + "defaultMessage": "Help to Translate" + }, + "login.desc": { + "defaultMessage": "Log into your account" + }, + "login.email": { + "defaultMessage": "Email" + }, + "login.error": { + "defaultMessage": "The email address or password you entered is not valid." + }, + "login.forgotpwd": { + "defaultMessage": "Forgot Password ?" + }, + "login.hsqldbcofig": { + "defaultMessage": "Although HSQLDB is bundled with WiseMapping by default during the installation, we do not recommend this database for production use. Please consider using MySQL 5.7 instead. You can find more information how to configure MySQL", + "description": "Missing production database configured" + }, + "login.page-title": { + "defaultMessage": "Login | WiseMapping" + }, + "login.password": { + "defaultMessage": "Password" + }, + "login.remberme": { + "defaultMessage": "Remember me" + }, + "login.signin": { + "defaultMessage": "Sign In" + }, + "login.signup": { + "defaultMessage": "Sign Up" + }, + "login.title": { + "defaultMessage": "Welcome" + }, + "login.userinactive": { + "defaultMessage": "Sorry, your account has not been activated yet. You'll receive a notification email when it becomes active. Stay tuned!." + }, + "map.creator": { + "defaultMessage": "Creator" + }, + "map.delete-selected": { + "defaultMessage": "Delete selected" + }, + "map.last-update": { + "defaultMessage": "Last Update" + }, + "map.more-actions": { + "defaultMessage": "More Actions" + }, + "map.name": { + "defaultMessage": "Name" + }, + "map.tooltip-add": { + "defaultMessage": "Add label to selected" + }, + "maps.choose-file": { + "defaultMessage": "Choose a file" + }, + "maps.create-tooltip": { + "defaultMessage": "Create a New Map" + }, + "maps.empty-result": { + "defaultMessage": "No matching record found with the current filter criteria." + }, + "maps.import-desc": { + "defaultMessage": "Import from other tools" + }, + "maps.modified": { + "defaultMessage": "Modified" + }, + "maps.modified-by": { + "defaultMessage": "Modified By" + }, + "maps.modified-by-desc": { + "defaultMessage": "Modified by {by} on {on}" + }, + "maps.nav-all": { + "defaultMessage": "All" + }, + "maps.nav-onwned": { + "defaultMessage": "Owned" + }, + "maps.nav-public": { + "defaultMessage": "Public" + }, + "maps.nav-shared": { + "defaultMessage": "Shared with me" + }, + "maps.nav-starred": { + "defaultMessage": "Starred" + }, + "maps.page-title": { + "defaultMessage": "My Maps | WiseMapping" + }, + "maps.revert": { + "defaultMessage": "Revert" + }, + "maps.search-action": { + "defaultMessage": "Search ..." + }, + "maps.tooltip-open": { + "defaultMessage": "Open for edition" + }, + "maps.tooltip-starred": { + "defaultMessage": "Starred" + }, + "maps.view": { + "defaultMessage": "View" + }, + "menu.account": { + "defaultMessage": "Account" + }, + "menu.change-password": { + "defaultMessage": "Change password" + }, + "menu.signout": { + "defaultMessage": "Sign Out" + }, + "publish.button": { + "defaultMessage": "Accept" + }, + "publish.checkbox": { + "defaultMessage": "Enable public sharing" + }, + "publish.description": { + "defaultMessage": "By publishing the map you make it visible to everyone on the Internet." + }, + "publish.embedded": { + "defaultMessage": "Embedded" + }, + "publish.embedded-msg": { + "defaultMessage": "Copy this snippet of code to embed in your blog or page:" + }, + "publish.public-url": { + "defaultMessage": "Public URL" + }, + "publish.public-url-msg": { + "defaultMessage": "Copy and paste the link below to share your map with colleagues:" + }, + "publish.title": { + "defaultMessage": "Publish" + }, + "registation.success-title": { + "defaultMessage": "Registation Success | WiseMapping" + }, + "registration.desc": { + "defaultMessage": "Signing up is free and just take a moment" + }, + "registration.email": { + "defaultMessage": "Email" + }, + "registration.firstname": { + "defaultMessage": "First Name" + }, + "registration.lastname": { + "defaultMessage": "Last Name" + }, + "registration.password": { + "defaultMessage": "Password" + }, + "registration.register": { + "defaultMessage": "Register" + }, + "registration.success.desc": { + "defaultMessage": "Click 'Sign In' button below and start creating mind maps." + }, + "registration.termandconditions": { + "defaultMessage": "Terms of Client: Please check the WiseMapping Account information you've entered above, and review the Terms of Client here. By clicking on 'Register' below you are agreeing to the Terms of Client above and the Privacy Policy" + }, + "registration.title": { + "defaultMessage": "Become a member" + }, + "rename.description": { + "defaultMessage": "Please, fill the new map name and description." + }, + "rename.title": { + "defaultMessage": "Rename" + }, + "resetpassword.success.title": { + "defaultMessage": "Your account has been created successfully" + }, + "role.editor": { + "defaultMessage": "Editor" + }, + "role.owner": { + "defaultMessage": "Onwer" + }, + "role.viewer": { + "defaultMessage": "Viewer" + }, + "share.add-button": { + "defaultMessage": "Add" + }, + "share.add-message": { + "defaultMessage": "Add message" + }, + "share.can-edit": { + "defaultMessage": "Can edit" + }, + "share.can-view": { + "defaultMessage": "Can view" + }, + "share.delete": { + "defaultMessage": "Delete collaborator" + }, + "share.delete-description": { + "defaultMessage": "Invite people to collaborate with you in the creation of your midnmap. They will be notified by email." + }, + "share.delete-title": { + "defaultMessage": "Share with people" + }, + "share.message": { + "defaultMessage": "Message" + } } \ No newline at end of file diff --git a/packages/webapp/lang/fr.json b/packages/webapp/lang/fr.json new file mode 100644 index 00000000..94dd88a7 --- /dev/null +++ b/packages/webapp/lang/fr.json @@ -0,0 +1,471 @@ +{ + "account.delete-warning": { + "defaultMessage": "Keep in mind that you will not be able retrieve any mindmap you have added. All your information will be deleted and it can not be restored." + }, + "accountinfo.button": { + "defaultMessage": "Accept" + }, + "accountinfo.email": { + "defaultMessage": "Email" + }, + "accountinfo.firstname": { + "defaultMessage": "First Name" + }, + "accountinfo.lastname": { + "defaultMessage": "Last Name" + }, + "accountinfo.title": { + "defaultMessage": "Account info" + }, + "action.cancel-button": { + "defaultMessage": "Cancel" + }, + "action.close-button": { + "defaultMessage": "Close" + }, + "action.delete": { + "defaultMessage": "Delete" + }, + "action.delete-description": { + "defaultMessage": "Deleted mindmap can not be recovered. Do you want to continue ?." + }, + "action.delete-title": { + "defaultMessage": "Delete" + }, + "action.duplicate": { + "defaultMessage": "Duplicate" + }, + "action.export": { + "defaultMessage": "Export" + }, + "action.history": { + "defaultMessage": "History" + }, + "action.history-description": { + "defaultMessage": "List of changes introduced in the last 90 days." + }, + "action.history-title": { + "defaultMessage": "Version history" + }, + "action.import": { + "defaultMessage": "Import" + }, + "action.info": { + "defaultMessage": "Info" + }, + "action.label": { + "defaultMessage": "Add Label" + }, + "action.new": { + "defaultMessage": "New Map" + }, + "action.open": { + "defaultMessage": "Open" + }, + "action.print": { + "defaultMessage": "Print" + }, + "action.publish": { + "defaultMessage": "Publish" + }, + "action.rename": { + "defaultMessage": "Rename" + }, + "action.rename-description-placeholder": { + "defaultMessage": "Description" + }, + "action.rename-name-placeholder": { + "defaultMessage": "Name" + }, + "action.share": { + "defaultMessage": "Share" + }, + "changepwd.button": { + "defaultMessage": "Change" + }, + "changepwd.confirm-password": { + "defaultMessage": "Confirm Password" + }, + "changepwd.description": { + "defaultMessage": "Please, provide the new password for your account." + }, + "changepwd.password": { + "defaultMessage": "Password" + }, + "changepwd.password-match": { + "defaultMessage": "Password do not match. Please, try again." + }, + "changepwd.title": { + "defaultMessage": "Change Password" + }, + "common.wait": { + "defaultMessage": "Please wait ..." + }, + "create.button": { + "defaultMessage": "Create" + }, + "create.description": { + "defaultMessage": "Please, fill the new map name and description." + }, + "create.title": { + "defaultMessage": "Create a new mindmap." + }, + "deletem.title": { + "defaultMessage": "All selected maps will be deleted" + }, + "duplicate.title": { + "defaultMessage": "Duplicate" + }, + "expired.description": { + "defaultMessage": "Your current session has expired. Please, sign in and try again." + }, + "expired.title": { + "defaultMessage": "Your session has expired" + }, + "export.desc": { + "defaultMessage": "Export this map in the format that you want and start using it in your presentations or sharing by email" + }, + "export.document": { + "defaultMessage": "Mindmap Tools: Export your mindmap in thirdparty mindmap tool formats" + }, + "export.document-label": { + "defaultMessage": "Document: Export your mindmap in a self-contained document ready to share" + }, + "export.image": { + "defaultMessage": "Image: Get a graphic representation of your map including all colors and shapes." + }, + "export.title": { + "defaultMessage": "Export" + }, + "export.warning": { + "defaultMessage": "Exporting to Image (SVG,PNG,JPEG,PDF) is only available in the editor toolbar." + }, + "footer.aboutus": { + "defaultMessage": "About Us" + }, + "footer.contactus": { + "defaultMessage": "Contact Us" + }, + "footer.faq": { + "defaultMessage": "F.A.Q." + }, + "footer.faqandhelp": { + "defaultMessage": "Help & FAQ" + }, + "footer.feedback": { + "defaultMessage": "Feedback" + }, + "footer.opensource": { + "defaultMessage": "Open Source" + }, + "footer.others": { + "defaultMessage": "Others" + }, + "footer.termsandconditions": { + "defaultMessage": "Term And Conditions" + }, + "forgot.desc": { + "defaultMessage": "We will send you an email to reset your password." + }, + "forgot.email": { + "defaultMessage": "Email" + }, + "forgot.page-title": { + "defaultMessage": "Forgot Password | WiseMapping" + }, + "forgot.register": { + "defaultMessage": "Send recovery link" + }, + "forgot.success.desc": { + "defaultMessage": "We've sent you an email that will allow you to reset your password. You should receive it in the next minutes." + }, + "forgot.success.title": { + "defaultMessage": "Your temporal password has been sent." + }, + "forgot.title": { + "defaultMessage": "Reset your password" + }, + "forgotsuccess.page-title": { + "defaultMessage": "Password Recovered | WiseMapping" + }, + "header.donthaveaccount": { + "defaultMessage": "Don't have an account ?" + }, + "header.haveaccount": { + "defaultMessage": "Already have an account?" + }, + "help.support": { + "defaultMessage": "Support" + }, + "history.no-changes": { + "defaultMessage": "There is no changes available" + }, + "import.button": { + "defaultMessage": "Create" + }, + "import.description": { + "defaultMessage": "You can import FreeMind 1.0.1 and WiseMapping maps to your list of maps. Select the file you want to import." + }, + "import.title": { + "defaultMessage": "Import existing mindmap" + }, + "info.basic-info": { + "defaultMessage": "Basic Info" + }, + "info.button": { + "defaultMessage": "Accept" + }, + "info.creation-time": { + "defaultMessage": "Creation Date" + }, + "info.creator": { + "defaultMessage": "Creator" + }, + "info.description": { + "defaultMessage": "Description" + }, + "info.description-msg": { + "defaultMessage": "By publishing the map you make it visible to everyone on the Internet." + }, + "info.modified-time": { + "defaultMessage": "Last Modified Date" + }, + "info.modified-tny": { + "defaultMessage": "Last Modified By" + }, + "info.name": { + "defaultMessage": "Name" + }, + "info.public-visibility": { + "defaultMessage": "Publicly Visible" + }, + "info.sharing": { + "defaultMessage": "Sharing" + }, + "info.starred": { + "defaultMessage": "Starred" + }, + "info.title": { + "defaultMessage": "Info" + }, + "language.change": { + "defaultMessage": "Change Language" + }, + "language.help": { + "defaultMessage": "Help to Translate" + }, + "login.desc": { + "defaultMessage": "Log into your account" + }, + "login.email": { + "defaultMessage": "Email" + }, + "login.error": { + "defaultMessage": "The email address or password you entered is not valid." + }, + "login.forgotpwd": { + "defaultMessage": "Forgot Password ?" + }, + "login.hsqldbcofig": { + "defaultMessage": "Although HSQLDB is bundled with WiseMapping by default during the installation, we do not recommend this database for production use. Please consider using MySQL 5.7 instead. You can find more information how to configure MySQL", + "description": "Missing production database configured" + }, + "login.page-title": { + "defaultMessage": "Login | WiseMapping" + }, + "login.password": { + "defaultMessage": "Password" + }, + "login.remberme": { + "defaultMessage": "Remember me" + }, + "login.signin": { + "defaultMessage": "Sign In" + }, + "login.signup": { + "defaultMessage": "Sign Up" + }, + "login.title": { + "defaultMessage": "Welcome" + }, + "login.userinactive": { + "defaultMessage": "Sorry, your account has not been activated yet. You'll receive a notification email when it becomes active. Stay tuned!." + }, + "map.creator": { + "defaultMessage": "Creator" + }, + "map.delete-selected": { + "defaultMessage": "Delete selected" + }, + "map.last-update": { + "defaultMessage": "Last Update" + }, + "map.more-actions": { + "defaultMessage": "More Actions" + }, + "map.name": { + "defaultMessage": "Name" + }, + "map.tooltip-add": { + "defaultMessage": "Add label to selected" + }, + "maps.choose-file": { + "defaultMessage": "Choose a file" + }, + "maps.create-tooltip": { + "defaultMessage": "Create a New Map" + }, + "maps.empty-result": { + "defaultMessage": "No matching record found with the current filter criteria." + }, + "maps.import-desc": { + "defaultMessage": "Import from other tools" + }, + "maps.modified": { + "defaultMessage": "Modified" + }, + "maps.modified-by": { + "defaultMessage": "Modified By" + }, + "maps.modified-by-desc": { + "defaultMessage": "Modified by {by} on {on}" + }, + "maps.nav-all": { + "defaultMessage": "All" + }, + "maps.nav-onwned": { + "defaultMessage": "Owned" + }, + "maps.nav-public": { + "defaultMessage": "Public" + }, + "maps.nav-shared": { + "defaultMessage": "Shared with me" + }, + "maps.nav-starred": { + "defaultMessage": "Starred" + }, + "maps.page-title": { + "defaultMessage": "My Maps | WiseMapping" + }, + "maps.revert": { + "defaultMessage": "Revert" + }, + "maps.search-action": { + "defaultMessage": "Search ..." + }, + "maps.tooltip-open": { + "defaultMessage": "Open for edition" + }, + "maps.tooltip-starred": { + "defaultMessage": "Starred" + }, + "maps.view": { + "defaultMessage": "View" + }, + "menu.account": { + "defaultMessage": "Account" + }, + "menu.change-password": { + "defaultMessage": "Change password" + }, + "menu.signout": { + "defaultMessage": "Sign Out" + }, + "publish.button": { + "defaultMessage": "Accept" + }, + "publish.checkbox": { + "defaultMessage": "Enable public sharing" + }, + "publish.description": { + "defaultMessage": "By publishing the map you make it visible to everyone on the Internet." + }, + "publish.embedded": { + "defaultMessage": "Embedded" + }, + "publish.embedded-msg": { + "defaultMessage": "Copy this snippet of code to embed in your blog or page:" + }, + "publish.public-url": { + "defaultMessage": "Public URL" + }, + "publish.public-url-msg": { + "defaultMessage": "Copy and paste the link below to share your map with colleagues:" + }, + "publish.title": { + "defaultMessage": "Publish" + }, + "registation.success-title": { + "defaultMessage": "Registation Success | WiseMapping" + }, + "registration.desc": { + "defaultMessage": "Signing up is free and just take a moment" + }, + "registration.email": { + "defaultMessage": "Email" + }, + "registration.firstname": { + "defaultMessage": "First Name" + }, + "registration.lastname": { + "defaultMessage": "Last Name" + }, + "registration.password": { + "defaultMessage": "Password" + }, + "registration.register": { + "defaultMessage": "Register" + }, + "registration.success.desc": { + "defaultMessage": "Click 'Sign In' button below and start creating mind maps." + }, + "registration.termandconditions": { + "defaultMessage": "Terms of Client: Please check the WiseMapping Account information you've entered above, and review the Terms of Client here. By clicking on 'Register' below you are agreeing to the Terms of Client above and the Privacy Policy" + }, + "registration.title": { + "defaultMessage": "Become a member" + }, + "rename.description": { + "defaultMessage": "Please, fill the new map name and description." + }, + "rename.title": { + "defaultMessage": "Rename" + }, + "resetpassword.success.title": { + "defaultMessage": "Your account has been created successfully" + }, + "role.editor": { + "defaultMessage": "Editor" + }, + "role.owner": { + "defaultMessage": "Onwer" + }, + "role.viewer": { + "defaultMessage": "Viewer" + }, + "share.add-button": { + "defaultMessage": "Add" + }, + "share.add-message": { + "defaultMessage": "Add message" + }, + "share.can-edit": { + "defaultMessage": "Can edit" + }, + "share.can-view": { + "defaultMessage": "Can view" + }, + "share.delete": { + "defaultMessage": "Delete collaborator" + }, + "share.delete-description": { + "defaultMessage": "Invite people to collaborate with you in the creation of your midnmap. They will be notified by email." + }, + "share.delete-title": { + "defaultMessage": "Share with people" + }, + "share.message": { + "defaultMessage": "Message" + } +} \ No newline at end of file diff --git a/packages/webapp/package.json b/packages/webapp/package.json index ade50ce9..7c00f914 100644 --- a/packages/webapp/package.json +++ b/packages/webapp/package.json @@ -9,7 +9,7 @@ "lint": "eslint src", "cy:run": "cypress run", "test": "start-server-and-test start http-get://localhost:3000 cy:run", - "extract": "formatjs extract", + "extract": "for lang in {'es','en','fr','de'};do formatjs extract 'src/**/*.ts*' --ignore 'src/@types/**/*' --out-file lang/${lang}.json;done", "compile": "formatjs compile" }, "repository": "http://www.wisemapping.com", diff --git a/packages/webapp/src/components/forgot-password-page/index.tsx b/packages/webapp/src/components/forgot-password-page/index.tsx index 5dd3ba0a..1da93293 100644 --- a/packages/webapp/src/components/forgot-password-page/index.tsx +++ b/packages/webapp/src/components/forgot-password-page/index.tsx @@ -46,7 +46,7 @@ const ForgotPassword = () => { @@ -74,8 +74,9 @@ const ForgotPassword = () => { }; const ForgotPasswordPage = (): React.ReactElement => { + const intl = useIntl(); useEffect(() => { - document.title = 'Reset Password | WiseMapping'; + document.title = intl.formatMessage({id:'forgot.page-title', defaultMessage:'Forgot Password | WiseMapping' }); }); return ( diff --git a/packages/webapp/src/components/forgot-password-success-page/index.tsx b/packages/webapp/src/components/forgot-password-success-page/index.tsx index ce278a0e..f75b1dc6 100644 --- a/packages/webapp/src/components/forgot-password-success-page/index.tsx +++ b/packages/webapp/src/components/forgot-password-success-page/index.tsx @@ -1,5 +1,5 @@ import React, { useEffect } from 'react'; -import { FormattedMessage } from 'react-intl'; +import { FormattedMessage, useIntl } from 'react-intl'; import FormContainer from '../layout/form-container'; import Header from '../layout/header'; import Footer from '../layout/footer'; @@ -8,8 +8,10 @@ import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; const ForgotPasswordSuccessPage = (): React.ReactElement => { + const intl = useIntl(); + useEffect(() => { - document.title = 'Reset Password | WiseMapping'; + document.title = intl.formatMessage({ id: 'forgotsuccess.page-title', defaultMessage: 'Password Recovered | WiseMapping' }); }); return ( @@ -19,14 +21,14 @@ const ForgotPasswordSuccessPage = (): React.ReactElement => { diff --git a/packages/webapp/src/components/form/global-error/index.tsx b/packages/webapp/src/components/form/global-error/index.tsx index 6b8ac353..823b02b8 100644 --- a/packages/webapp/src/components/form/global-error/index.tsx +++ b/packages/webapp/src/components/form/global-error/index.tsx @@ -13,7 +13,6 @@ const GlobalError = (props: GlobalErrorProps): React.ReactElement | null => { return hasError ? ( ) : null; diff --git a/packages/webapp/src/components/layout/footer/index.tsx b/packages/webapp/src/components/layout/footer/index.tsx index d080675e..9959aa9b 100644 --- a/packages/webapp/src/components/layout/footer/index.tsx +++ b/packages/webapp/src/components/layout/footer/index.tsx @@ -20,23 +20,20 @@ const Footer = (): React.ReactElement => {
- {' '} - {' '} +
- {' '} {' '} + />
- {' '} - {' '} +
@@ -46,23 +43,20 @@ const Footer = (): React.ReactElement => {
- {' '}
- {' '} - {' '} +
- {' '} {' '} + />
diff --git a/packages/webapp/src/components/login-page/index.tsx b/packages/webapp/src/components/login-page/index.tsx index fd7ddbe8..d20a1a92 100644 --- a/packages/webapp/src/components/login-page/index.tsx +++ b/packages/webapp/src/components/login-page/index.tsx @@ -67,7 +67,7 @@ const LoginPage = (): React.ReactElement => { const intl = useIntl(); useEffect(() => { - document.title = 'Login | WiseMapping'; + document.title = intl.formatMessage({id:'login.page-title',defaultMessage:'Login | WiseMapping'}); }); return ( diff --git a/packages/webapp/src/components/maps-page/action-dispatcher/create-dialog/index.tsx b/packages/webapp/src/components/maps-page/action-dispatcher/create-dialog/index.tsx index e4f05a4b..6c26c9e2 100644 --- a/packages/webapp/src/components/maps-page/action-dispatcher/create-dialog/index.tsx +++ b/packages/webapp/src/components/maps-page/action-dispatcher/create-dialog/index.tsx @@ -66,7 +66,7 @@ const CreateDialog = ({ onClose }: CreateProps): React.ReactElement => { error={error} title={intl.formatMessage({ id: 'create.title', - defaultMessage: 'Create a new mindmap', + defaultMessage: 'Create a new mindmap.', })} description={intl.formatMessage({ id: 'create.description', diff --git a/packages/webapp/src/components/maps-page/action-dispatcher/delete-dialog/index.tsx b/packages/webapp/src/components/maps-page/action-dispatcher/delete-dialog/index.tsx index d6c9122a..e68ff78d 100644 --- a/packages/webapp/src/components/maps-page/action-dispatcher/delete-dialog/index.tsx +++ b/packages/webapp/src/components/maps-page/action-dispatcher/delete-dialog/index.tsx @@ -30,9 +30,8 @@ const DeleteDialog = ({ mapId, onClose }: SimpleDialogProps): React.ReactElement mutation.mutate(mapId); }; - // Fetch map model to be rendered ... - const { map } = fetchMapById(mapId); - const alertTitle = `Delete ${map?.title}`; + const { map } = fetchMapById(mapId) + const alertTitle=`${intl.formatMessage({ id: 'action.delete-title', defaultMessage: 'Delete' })} ${map?.title}`; return (
diff --git a/packages/webapp/src/components/maps-page/action-dispatcher/history-dialog/index.tsx b/packages/webapp/src/components/maps-page/action-dispatcher/history-dialog/index.tsx index b7a28368..0993ebc4 100644 --- a/packages/webapp/src/components/maps-page/action-dispatcher/history-dialog/index.tsx +++ b/packages/webapp/src/components/maps-page/action-dispatcher/history-dialog/index.tsx @@ -111,8 +111,7 @@ const HistoryDialog = ({ mapId, onClose }: SimpleDialogProps): React.ReactElemen handleOnClick(e, row.id)} - > + onClick={(e) => handleOnClick(e, row.id)}> { const intl = useIntl(); useEffect(() => { - document.title = 'Maps | WiseMapping'; + document.title = intl.formatMessage({ id: 'maps.page-title', defaultMessage: 'My Maps | WiseMapping' }); }, []); const mutation = useMutation((id: number) => client.deleteLabel(id), { @@ -94,27 +94,27 @@ const MapsPage = (): ReactElement => { const filterButtons: ToolbarButtonInfo[] = [ { filter: { type: 'all' }, - label: 'All', + label: intl.formatMessage({ id: 'maps.nav-all', defaultMessage:'All' }), icon: , }, { filter: { type: 'owned' }, - label: 'Owned', + label: intl.formatMessage({ id: 'maps.nav-onwned', defaultMessage:'Owned' }), icon: , }, { filter: { type: 'starred' }, - label: 'Starred', + label: intl.formatMessage({ id: 'maps.nav-starred', defaultMessage:'Starred' }), icon: , }, { filter: { type: 'shared' }, - label: 'Shared with me', + label: intl.formatMessage({ id: 'maps.nav-shared', defaultMessage:'Shared with me' }), icon: , }, { filter: { type: 'public' }, - label: 'Public', + label: intl.formatMessage({ id: 'maps.nav-public', defaultMessage:'Public' }), icon: , }, ]; @@ -228,9 +228,8 @@ const MapsPage = (): ReactElement => { active={filter} onClick={handleMenuClick} onDelete={handleLabelDelete} - key={`${buttonInfo.filter.type}:${ - (buttonInfo.filter as LabelFilter).label - }`} + key={`${buttonInfo.filter.type}:${(buttonInfo.filter as LabelFilter).label + }`} /> ); })} diff --git a/packages/webapp/src/components/maps-page/maps-list/index.tsx b/packages/webapp/src/components/maps-page/maps-list/index.tsx index b8c6d66a..f8aa3f67 100644 --- a/packages/webapp/src/components/maps-page/maps-list/index.tsx +++ b/packages/webapp/src/components/maps-page/maps-list/index.tsx @@ -55,9 +55,9 @@ function getComparator( order: Order, orderBy: Key ): ( - a: { [key in Key]: number | string | boolean | number[] | undefined }, - b: { [key in Key]: number | string | number[] | boolean } -) => number { + a: { [key in Key]: number | string | boolean | number[] | undefined }, + b: { [key in Key]: number | string | number[] | boolean } + ) => number { return order === 'desc' ? (a, b) => descendingComparator(a, b, orderBy) : (a, b) => -descendingComparator(a, b, orderBy); @@ -248,7 +248,6 @@ export const MapsList = (props: MapsListProps): React.ReactElement => { const [rowsPerPage, setRowsPerPage] = React.useState(10); const client: Client = useSelector(activeInstance); const intl = useIntl(); - const queryClient = useQueryClient(); // Configure locale ... @@ -266,11 +265,13 @@ export const MapsList = (props: MapsListProps): React.ReactElement => { const { isLoading, data } = useQuery('maps', () => { return client.fetchAllMaps(); }); + const mapsInfo: MapInfo[] = data ? data.filter(mapsFilter(filter, searchCondition)) : []; const [activeRowAction, setActiveRowAction] = React.useState( undefined ); + type ActiveDialog = { actionType: ActionType; mapsId: number[]; @@ -340,8 +341,8 @@ export const MapsList = (props: MapsListProps): React.ReactElement => { onSuccess: () => { queryClient.invalidateQueries('maps'); }, - onError: () => { - // setError(error); + onError: (error) => { + console.error(error); }, } ); @@ -387,7 +388,7 @@ export const MapsList = (props: MapsListProps): React.ReactElement => {
{selected.length > 0 && ( - +
{
) : ( - stableSort(mapsInfo, getComparator(order, orderBy)) - .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage) - .map((row: MapInfo) => { - const isItemSelected = isSelected(row.id); - const labelId = row.id; + stableSort(mapsInfo, getComparator(order, orderBy)) + .slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage) + .map((row: MapInfo) => { + const isItemSelected = isSelected(row.id); + const labelId = row.id; - return ( - handleRowClick(event, row.id)} - role="checkbox" - aria-checked={isItemSelected} - tabIndex={-1} - key={row.id} - selected={isItemSelected} - style={{ border: '0' }} - > - - - - - - - - handleStarred(e, row.id) - } + return ( + handleRowClick(event, row.id)} + role="checkbox" + aria-checked={isItemSelected} + tabIndex={-1} + key={row.id} + selected={isItemSelected} + style={{ border: '0' }} + > + - - - - + - - - e.stopPropagation()} + - {row.title} - - - + + + handleStarred(e, row.id) + } + > + + + + - - {row.labels} - + + + e.stopPropagation()} + > + {row.title} + + + - - {row.createdBy} - + + {row.labels} + - - - - {dayjs( - row.lastModificationTime - ).fromNow()} - - - + + {row.createdBy} + - - - - - - - - - ); - }) - )} + + + + {dayjs( + row.lastModificationTime + ).fromNow()} + + + + + + + + + + + + + ); + }) + )} @@ -605,6 +601,6 @@ export const MapsList = (props: MapsListProps): React.ReactElement => { onClose={() => setActiveDialog(undefined)} mapsId={activeDialog ? activeDialog.mapsId : []} /> -
+ ); }; diff --git a/packages/webapp/src/components/registration-success-page/index.tsx b/packages/webapp/src/components/registration-success-page/index.tsx index e956831c..d9b40095 100644 --- a/packages/webapp/src/components/registration-success-page/index.tsx +++ b/packages/webapp/src/components/registration-success-page/index.tsx @@ -1,5 +1,5 @@ import React, { useEffect } from 'react'; -import { FormattedMessage } from 'react-intl'; +import { FormattedMessage, useIntl } from 'react-intl'; import FormContainer from '../layout/form-container'; import Header from '../layout/header'; import Footer from '../layout/footer'; @@ -8,8 +8,10 @@ import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; const RegistrationSuccessPage = (): React.ReactElement => { + const intl = useIntl(); + useEffect(() => { - document.title = 'Reset Password | WiseMapping'; + document.title = intl.formatMessage({ id: 'registation.success-title', defaultMessage: 'Registation Success | WiseMapping' }); }); return (