Complete i18n on messages

This commit is contained in:
Paulo Gustavo Veiga 2021-02-25 13:48:27 -08:00
parent 3a7682d163
commit ab94d127e6
18 changed files with 1614 additions and 221 deletions

View File

@ -42,7 +42,7 @@ You dont 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`

View File

@ -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"
}
}

View File

@ -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"
},

View File

@ -1,60 +1,471 @@
{
"footer.aboutus": {
"defaultMessage": "Sobre Nosotros"
"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."
},
"footer.contactus": {
"defaultMessage": "Contáctenos"
"accountinfo.button": {
"defaultMessage": "Accept"
},
"footer.donations": {
"defaultMessage": "Donaciones"
},
"header.donthaveaccount": {
"defaultMessage": "No tienes una cuenta ?"
},
"login.email": {
"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": "Preguntas Frecuentes"
"defaultMessage": "F.A.Q."
},
"footer.faqandhelp": {
"defaultMessage": "Help & FAQ"
},
"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.others": {
"defaultMessage": "Others"
},
"footer.termsandconditions": {
"defaultMessage": "Terminos y Condiciones"
"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!."
},
"login.welcome": {
"defaultMessage": "Bienvenido"
"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"
}
}

View File

@ -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"
}
}

View File

@ -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",

View File

@ -46,7 +46,7 @@ const ForgotPassword = () => {
<Typography>
<FormattedMessage
id="forgot.desc"
defaultMessage="We will send you an email to reset your password"
defaultMessage="We will send you an email to reset your password."
/>
</Typography>
@ -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 (

View File

@ -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 => {
<Typography variant="h4" component="h1">
<FormattedMessage
id="forgot.success.title"
defaultMessage="Your temporal password has been sent"
defaultMessage="Your temporal password has been sent."
/>
</Typography>
<Typography paragraph>
<FormattedMessage
id="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."
/>
</Typography>

View File

@ -13,7 +13,6 @@ const GlobalError = (props: GlobalErrorProps): React.ReactElement | null => {
return hasError ? (
<StyledAlert severity="error" variant="filled" hidden={!hasError}>
{' '}
{errorMsg}
</StyledAlert>
) : null;

View File

@ -20,23 +20,20 @@ const Footer = (): React.ReactElement => {
</h4>
<div>
<a href="https://www.wisemapping.com/faq.html">
{' '}
<FormattedMessage id="footer.faq" defaultMessage="F.A.Q." />{' '}
<FormattedMessage id="footer.faq" defaultMessage="F.A.Q." />
</a>
</div>
<div>
<a href="https://www.wisemapping.com/termsofuse.html">
{' '}
<FormattedMessage
id="footer.termsandconditions"
defaultMessage="Term And Conditions"
/>{' '}
/>
</a>
</div>
<div>
<a href="mailto:team@wisemapping.com">
{' '}
<FormattedMessage id="footer.contactus" defaultMessage="Contact Us" />{' '}
<FormattedMessage id="footer.contactus" defaultMessage="Contact Us" />
</a>
</div>
</div>
@ -46,23 +43,20 @@ const Footer = (): React.ReactElement => {
</h4>
<div>
<a href="https://www.wisemapping.com/aboutus.html">
{' '}
<FormattedMessage id="footer.aboutus" defaultMessage="About Us" />
</a>
</div>
<div>
<a href="mailto:feedback@wisemapping.com">
{' '}
<FormattedMessage id="footer.feedback" defaultMessage="Feedback" />{' '}
<FormattedMessage id="footer.feedback" defaultMessage="Feedback" />
</a>
</div>
<div>
<a href="http://www.wisemapping.org/">
{' '}
<FormattedMessage
id="footer.opensource"
defaultMessage="Open Source"
/>{' '}
/>
</a>
</div>
</div>

View File

@ -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 (

View File

@ -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',

View File

@ -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 (
<div>
<BaseDialog

View File

@ -96,9 +96,7 @@ const ExportDialog = ({
onClose={handleOnClose}
onSubmit={handleOnSubmit}
title={intl.formatMessage({ id: 'export.title', defaultMessage: 'Export' })}
description={
'Export this map in the format that you want and start using it in your presentations or sharing by email'
}
description={intl.formatMessage({ id: 'export.desc', defaultMessage: 'Export this map in the format that you want and start using it in your presentations or sharing by email' })}
submitButton={intl.formatMessage({ id: 'export.title', defaultMessage: 'Export' })}
>
<Alert severity="info">

View File

@ -111,8 +111,7 @@ const HistoryDialog = ({ mapId, onClose }: SimpleDialogProps): React.ReactElemen
<TableCell align="left">
<Link
href="#"
onClick={(e) => handleOnClick(e, row.id)}
>
onClick={(e) => handleOnClick(e, row.id)}>
<FormattedMessage
id="maps.revert"
defaultMessage="Revert"

View File

@ -67,7 +67,7 @@ const MapsPage = (): ReactElement => {
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: <ScatterPlotTwoTone color="secondary" />,
},
{
filter: { type: 'owned' },
label: 'Owned',
label: intl.formatMessage({ id: 'maps.nav-onwned', defaultMessage:'Owned' }),
icon: <PersonOutlineTwoTone color="secondary" />,
},
{
filter: { type: 'starred' },
label: 'Starred',
label: intl.formatMessage({ id: 'maps.nav-starred', defaultMessage:'Starred' }),
icon: <StarTwoTone color="secondary" />,
},
{
filter: { type: 'shared' },
label: 'Shared with me',
label: intl.formatMessage({ id: 'maps.nav-shared', defaultMessage:'Shared with me' }),
icon: <ShareTwoTone color="secondary" />,
},
{
filter: { type: 'public' },
label: 'Public',
label: intl.formatMessage({ id: 'maps.nav-public', defaultMessage:'Public' }),
icon: <PublicTwoTone color="secondary" />,
},
];
@ -228,8 +228,7 @@ 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
}`}
/>
);

View File

@ -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<unknown, ErrorInfo, MapInfo[]>('maps', () => {
return client.fetchAllMaps();
});
const mapsInfo: MapInfo[] = data ? data.filter(mapsFilter(filter, searchCondition)) : [];
const [activeRowAction, setActiveRowAction] = React.useState<ActionPanelState | undefined>(
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 => {
<Toolbar className={classes.toolbar} variant="dense">
<div className={classes.toolbarActions}>
{selected.length > 0 && (
<Tooltip arrow={true} title="Delete selected">
<Tooltip arrow={true} title={intl.formatMessage({ id: 'map.delete-selected', defaultMessage: 'Delete selected' })}>
<Button
color="primary"
size="medium"
@ -403,7 +404,7 @@ export const MapsList = (props: MapsListProps): React.ReactElement => {
)}
{selected.length > 0 && (
<Tooltip arrow={true} title="Add label to selected">
<Tooltip arrow={true} title={intl.formatMessage({ id: 'map.tooltip-add', defaultMessage: 'Add label to selected' })}>
<Button
color="primary"
size="medium"
@ -438,7 +439,7 @@ export const MapsList = (props: MapsListProps): React.ReactElement => {
<SearchIcon />
</div>
<InputBase
placeholder="Search…"
placeholder={intl.formatMessage({ id: 'maps.search-action', defaultMessage:'Search ...' })}
classes={{
root: classes.searchInputRoot,
input: classes.searchInputInput,
@ -511,9 +512,8 @@ export const MapsList = (props: MapsListProps): React.ReactElement => {
padding="checkbox"
className={classes.bodyCell}
>
<Tooltip arrow={true} title="Starred">
<Tooltip arrow={true} title={intl.formatMessage({ id: 'maps.tooltip-starred', defaultMessage: 'Starred' })}>
<IconButton
aria-label="Starred"
size="small"
onClick={(e) =>
handleStarred(e, row.id)
@ -534,7 +534,7 @@ export const MapsList = (props: MapsListProps): React.ReactElement => {
<TableCell className={classes.bodyCell}>
<Tooltip
arrow={true}
title="Open for edition"
title={intl.formatMessage({ id: 'maps.tooltip-open', defaultMessage: 'Open for edition' })}
placement="bottom-start"
>
<Link
@ -559,11 +559,7 @@ export const MapsList = (props: MapsListProps): React.ReactElement => {
<TableCell className={classes.bodyCell}>
<Tooltip
arrow={true}
title={`Modified by ${
row.lastModificationBy
} on ${dayjs(
row.lastModificationTime
).format('lll')}`}
title={intl.formatMessage({ id: 'maps.modified-by-desc', defaultMessage: 'Modified by {by} on {on}' })}
placement="bottom-start"
>
<span>

View File

@ -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 (