add mmjstool as dev dep (#2707)
* add mmjstool as dev dep * run the mmjstool to fix issues * add extra line * update makefile * update per feedback * revert strings per request
This commit is contained in:
parent
d1ca9b874a
commit
9ae71cf393
4 changed files with 972 additions and 25 deletions
4
Makefile
4
Makefile
|
|
@ -237,9 +237,7 @@ can-build-pr:
|
|||
fi
|
||||
|
||||
i18n-extract: ## Extract strings for translation from the source code
|
||||
@[[ -d $(MM_UTILITIES_DIR) ]] || echo "You must clone github.com/mattermost/mattermost-utilities repo in .. to use this command"
|
||||
@[[ -d $(MM_UTILITIES_DIR) ]] && cd $(MM_UTILITIES_DIR) && npm install && npm run babel && node mmjstool/build/index.js i18n extract-mobile
|
||||
|
||||
npm run mmjstool -- i18n extract-mobile
|
||||
|
||||
## Help documentation https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
|
||||
help:
|
||||
|
|
|
|||
|
|
@ -5,21 +5,19 @@
|
|||
"about.enterpriseEditionSt": "Modern communication from behind your firewall.",
|
||||
"about.hash": "Build Hash:",
|
||||
"about.hashee": "EE Build Hash:",
|
||||
"about.privacy": "Privacy Policy",
|
||||
"about.teamEditionLearn": "Join the Mattermost community at ",
|
||||
"about.teamEditionSt": "All your team communication in one place, instantly searchable and accessible anywhere.",
|
||||
"about.teamEditiont0": "Team Edition",
|
||||
"about.teamEditiont1": "Enterprise Edition",
|
||||
"about.title": "About Mattermost",
|
||||
"about.tos": "Terms of Service",
|
||||
"announcment_banner.dont_show_again": "Don't show again",
|
||||
"api.channel.add_member.added": "{addedUsername} added to the channel by {username}.",
|
||||
"archivedChannelMessage": "You are viewing an **archived channel**. New messages cannot be posted.",
|
||||
"center_panel.archived.closeChannel": "Close Channel",
|
||||
"channel_header.addMembers": "Add Members",
|
||||
"channel_header.directchannel.you": "{displayname} (you) ",
|
||||
"channel_header.pinnedPosts": "Pinned Posts",
|
||||
"channel_header.manageMembers": "Manage Members",
|
||||
"channel_header.pinnedPosts": "Pinned Posts",
|
||||
"channel_header.viewMembers": "View Members",
|
||||
"channel_info.header": "Header:",
|
||||
"channel_info.purpose": "Purpose:",
|
||||
|
|
@ -35,8 +33,8 @@
|
|||
"channel_modal.optional": "(optional)",
|
||||
"channel_modal.purpose": "Purpose",
|
||||
"channel_modal.purposeEx": "E.g.: \"A channel to file bugs and improvements\"",
|
||||
"channel_notifications.muteChannel.settings": "Mute channel",
|
||||
"channel_notifications.ignoreChannelMentions.settings": "Ignore @channel, @here, @all",
|
||||
"channel_notifications.muteChannel.settings": "Mute channel",
|
||||
"combined_system_message.added_to_channel.many_expanded": "{users} and {lastUser} were **added to the channel** by {actor}.",
|
||||
"combined_system_message.added_to_channel.one": "{firstUser} **added to the channel** by {actor}.",
|
||||
"combined_system_message.added_to_channel.one_you": "You were **added to the channel** by {actor}.",
|
||||
|
|
@ -47,15 +45,19 @@
|
|||
"combined_system_message.added_to_team.two": "{firstUser} and {secondUser} **added to the team** by {actor}.",
|
||||
"combined_system_message.joined_channel.many_expanded": "{users} and {lastUser} **joined the channel**.",
|
||||
"combined_system_message.joined_channel.one": "{firstUser} **joined the channel**.",
|
||||
"combined_system_message.joined_channel.one_you": "You **joined the channel**.",
|
||||
"combined_system_message.joined_channel.two": "{firstUser} and {secondUser} **joined the channel**.",
|
||||
"combined_system_message.joined_team.many_expanded": "{users} and {lastUser} **joined the team**.",
|
||||
"combined_system_message.joined_team.one": "{firstUser} **joined the team**.",
|
||||
"combined_system_message.joined_team.one_you": "You **joined the team**.",
|
||||
"combined_system_message.joined_team.two": "{firstUser} and {secondUser} **joined the team**.",
|
||||
"combined_system_message.left_channel.many_expanded": "{users} and {lastUser} **left the channel**.",
|
||||
"combined_system_message.left_channel.one": "{firstUser} **left the channel**.",
|
||||
"combined_system_message.left_channel.one_you": "You **left the channel**.",
|
||||
"combined_system_message.left_channel.two": "{firstUser} and {secondUser} **left the channel**.",
|
||||
"combined_system_message.left_team.many_expanded": "{users} and {lastUser} **left the team**.",
|
||||
"combined_system_message.left_team.one": "{firstUser} **left the team**.",
|
||||
"combined_system_message.left_team.one_you": "You **left the team**.",
|
||||
"combined_system_message.left_team.two": "{firstUser} and {secondUser} **left the team**.",
|
||||
"combined_system_message.removed_from_channel.many_expanded": "{users} and {lastUser} were **removed from the channel**.",
|
||||
"combined_system_message.removed_from_channel.one": "{firstUser} was **removed from the channel**.",
|
||||
|
|
@ -126,8 +128,8 @@
|
|||
"mobile.account_notifications.threads_mentions": "Mentions in threads",
|
||||
"mobile.account_notifications.threads_start": "Threads that I start",
|
||||
"mobile.account_notifications.threads_start_participate": "Threads that I start or participate in",
|
||||
"mobile.account.settings.save": "Save",
|
||||
"mobile.account.settings.cancel": "Cancel",
|
||||
"mobile.account.settings.save": "Save",
|
||||
"mobile.action_menu.select": "Select an option",
|
||||
"mobile.advanced_settings.clockDisplay": "Clock display",
|
||||
"mobile.advanced_settings.delete": "Delete",
|
||||
|
|
@ -148,10 +150,10 @@
|
|||
"mobile.announcement_banner.title": "Announcement",
|
||||
"mobile.authentication_error.message": "Mattermost has encountered an error. Please re-authenticate to start a new session.",
|
||||
"mobile.authentication_error.title": "Authentication Error",
|
||||
"mobile.calendar.monthNames": "January,February,March,April,May,June,July,August,September,October,November,December",
|
||||
"mobile.calendar.monthNamesShort": "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
|
||||
"mobile.calendar.dayNames": "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",
|
||||
"mobile.calendar.dayNamesShort": "Sun,Mon,Tue,Wed,Thu,Fri,Sat",
|
||||
"mobile.calendar.monthNames": "January,February,March,April,May,June,July,August,September,October,November,December",
|
||||
"mobile.calendar.monthNamesShort": "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
|
||||
"mobile.channel_drawer.search": "Jump to...",
|
||||
"mobile.channel_info.alertMessageDeleteChannel": "Are you sure you want to archive the {term} {name}?",
|
||||
"mobile.channel_info.alertMessageLeaveChannel": "Are you sure you want to leave the {term} {name}?",
|
||||
|
|
@ -171,8 +173,8 @@
|
|||
"mobile.channel_list.members": "MEMBERS",
|
||||
"mobile.channel_list.not_member": "NOT A MEMBER",
|
||||
"mobile.channel_list.unreads": "UNREADS",
|
||||
"mobile.channel.markAsRead": "Mark As Read",
|
||||
"mobile.channel_members.add_members_alert": "You must select at least one member to add to the channel.",
|
||||
"mobile.channel.markAsRead": "Mark As Read",
|
||||
"mobile.client_upgrade": "Update App",
|
||||
"mobile.client_upgrade.can_upgrade_subtitle": "A new version is available for download.",
|
||||
"mobile.client_upgrade.can_upgrade_title": "Update Available",
|
||||
|
|
@ -203,7 +205,6 @@
|
|||
"mobile.create_post.read_only": "This channel is read-only",
|
||||
"mobile.custom_list.no_results": "No Results",
|
||||
"mobile.display_settings.theme": "Theme",
|
||||
"mobile.display_settings.custom_theme": "Custom Theme",
|
||||
"mobile.document_preview.failed_description": "An error occurred while opening the document. Please make sure you have a {fileType} viewer installed and try again.\n",
|
||||
"mobile.document_preview.failed_title": "Open Document failed",
|
||||
"mobile.downloader.android_complete": "Download complete",
|
||||
|
|
@ -222,6 +223,7 @@
|
|||
"mobile.drawer.teamsTitle": "Teams",
|
||||
"mobile.edit_channel": "Save",
|
||||
"mobile.edit_post.title": "Editing Message",
|
||||
"mobile.edit_profile.remove_profile_photo": "Remove Photo",
|
||||
"mobile.emoji_picker.activity": "ACTIVITY",
|
||||
"mobile.emoji_picker.custom": "CUSTOM",
|
||||
"mobile.emoji_picker.flags": "FLAGS",
|
||||
|
|
@ -240,7 +242,6 @@
|
|||
"mobile.extension.file_limit": "Sharing is limited to a maximum of 5 files.",
|
||||
"mobile.extension.max_file_size": "File attachments shared in Mattermost must be less than {size}.",
|
||||
"mobile.extension.permission": "Mattermost needs access to the device storage to share files.",
|
||||
"mobile.extension.posting": "Posting...",
|
||||
"mobile.extension.title": "Share in Mattermost",
|
||||
"mobile.failed_network_action.description": "There seems to be a problem with your internet connection. Make sure you have an active connection and try again.",
|
||||
"mobile.failed_network_action.retry": "Try Again",
|
||||
|
|
@ -280,8 +281,8 @@
|
|||
"mobile.message_length.message": "Your current message is too long. Current character count: {max}/{count}",
|
||||
"mobile.message_length.title": "Message Length",
|
||||
"mobile.more_dms.add_more": "You can add {remaining, number} more users",
|
||||
"mobile.more_dms.one_more": "You can add 1 more user",
|
||||
"mobile.more_dms.cannot_add_more": "You cannot add more users",
|
||||
"mobile.more_dms.one_more": "You can add 1 more user",
|
||||
"mobile.more_dms.start": "Start",
|
||||
"mobile.more_dms.title": "New Conversation",
|
||||
"mobile.more_dms.you": "@{username} - you",
|
||||
|
|
@ -337,13 +338,13 @@
|
|||
"mobile.post_info.add_reaction": "Add Reaction",
|
||||
"mobile.post_info.copy_text": "Copy Text",
|
||||
"mobile.post_info.flag": "Flag",
|
||||
"mobile.post_info.unflag": "Unflag",
|
||||
"mobile.post_info.pin": "Pin to Channel",
|
||||
"mobile.post_info.reply": "Reply",
|
||||
"mobile.post_info.unflag": "Unflag",
|
||||
"mobile.post_info.unpin": "Unpin from Channel",
|
||||
"mobile.post_pre_header.flagged": "Flagged",
|
||||
"mobile.post_pre_header.pinned_flagged": "Pinned and Flagged",
|
||||
"mobile.post_pre_header.pinned": "Pinned",
|
||||
"mobile.post_pre_header.pinned_flagged": "Pinned and Flagged",
|
||||
"mobile.post_textbox.empty.message": "You are trying to send an empty message.\nPlease make sure you have a message or at least one attached file.",
|
||||
"mobile.post_textbox.empty.ok": "OK",
|
||||
"mobile.post_textbox.empty.title": "Empty Message",
|
||||
|
|
@ -357,6 +358,8 @@
|
|||
"mobile.post.failed_title": "Unable to send your message",
|
||||
"mobile.post.retry": "Refresh",
|
||||
"mobile.posts_view.moreMsg": "More New Messages Above",
|
||||
"mobile.privacy_link": "Privacy Policy",
|
||||
"mobile.reaction_header.all_emojis": "All",
|
||||
"mobile.recent_mentions.empty_description": "Messages containing your username and other words that trigger mentions will appear here.",
|
||||
"mobile.recent_mentions.empty_title": "No Recent Mentions",
|
||||
"mobile.rename_channel.display_name_maxLength": "Channel name must be less than {maxLength, number} characters",
|
||||
|
|
@ -418,13 +421,10 @@
|
|||
"mobile.set_status.offline": "Offline",
|
||||
"mobile.set_status.online": "Online",
|
||||
"mobile.settings.modal.check_for_upgrade": "Check for Updates",
|
||||
"mobile.share_extension.cancel": "Cancel",
|
||||
"mobile.share_extension.channel": "Channel",
|
||||
"mobile.share_extension.error_close": "Close",
|
||||
"mobile.share_extension.error_message": "An error has occurred while using the share extension.",
|
||||
"mobile.share_extension.error_title": "Extension Error",
|
||||
"mobile.share_extension.post_error": "An error has occurred while posting the message. Please try again.",
|
||||
"mobile.share_extension.send": "Send",
|
||||
"mobile.share_extension.team": "Team",
|
||||
"mobile.suggestion.members": "Members",
|
||||
"mobile.terms_of_service.alert_cancel": "Cancel",
|
||||
|
|
@ -436,8 +436,9 @@
|
|||
"mobile.timezone_settings.automatically": "Set automatically",
|
||||
"mobile.timezone_settings.manual": "Change timezone",
|
||||
"mobile.timezone_settings.select": "Select Timezone",
|
||||
"mobile.user.settings.notifications.email.fifteenMinutes": "Every 15 minutes",
|
||||
"mobile.tos_link": "Terms of Service",
|
||||
"mobile.user_list.deactivated": "Deactivated",
|
||||
"mobile.user.settings.notifications.email.fifteenMinutes": "Every 15 minutes",
|
||||
"mobile.video_playback.failed_description": "An error occurred while trying to play the video.\n",
|
||||
"mobile.video_playback.failed_title": "Video playback failed",
|
||||
"mobile.video.save_error_message": "To save the video file you need to download it first.",
|
||||
|
|
@ -479,7 +480,6 @@
|
|||
"post_info.system": "System",
|
||||
"post_message_view.edited": "(edited)",
|
||||
"posts_view.newMsg": "New Messages",
|
||||
"quick_switch_modal.teams": "Teams",
|
||||
"rename_channel.handleHolder": "lowercase alphanumeric characters",
|
||||
"rename_channel.url": "URL",
|
||||
"rhs_thread.rootPostDeletedMessage.body": "Part of this thread has been deleted due to a data retention policy. You can no longer reply to this thread.",
|
||||
|
|
@ -495,8 +495,6 @@
|
|||
"sidebar.favorite": "FAVORITE CHANNELS",
|
||||
"sidebar.pg": "PRIVATE CHANNELS",
|
||||
"sidebar.types.recent": "RECENT ACTIVITY",
|
||||
"sidebar.removeList": "Remove from list",
|
||||
"sidebar.unreadSection": "UNREADS",
|
||||
"sidebar.unreads": "More unreads",
|
||||
"signup.email": "Email and Password",
|
||||
"signup.office365": "Office 365",
|
||||
|
|
@ -519,6 +517,7 @@
|
|||
"terms_of_service.agreeButton": "I Agree",
|
||||
"terms_of_service.api_error": "Unable to complete the request. If this issue persists, contact your System Administrator.",
|
||||
"user.settings.display.clockDisplay": "Clock Display",
|
||||
"user.settings.display.custom_theme": "Custom Theme",
|
||||
"user.settings.display.militaryClock": "24-hour clock (example: 16:00)",
|
||||
"user.settings.display.normalClock": "12-hour clock (example: 4:00 PM)",
|
||||
"user.settings.display.preferTime": "Select how you prefer time displayed.",
|
||||
|
|
@ -526,7 +525,6 @@
|
|||
"user.settings.general.emailCantUpdate": "Email must be updated using a web client or desktop application.",
|
||||
"user.settings.general.emailGitlabCantUpdate": "Login occurs through GitLab. Email cannot be updated. Email address used for notifications is {email}.",
|
||||
"user.settings.general.emailGoogleCantUpdate": "Login occurs through Google. Email cannot be updated. Email address used for notifications is {email}.",
|
||||
"user.settings.general.emailHelp1": "Email is used for sign-in, notifications, and password reset. Email requires verification if changed.",
|
||||
"user.settings.general.emailHelp2": "Email has been disabled by your System Administrator. No notification emails will be sent until it is enabled.",
|
||||
"user.settings.general.emailLdapCantUpdate": "Login occurs through AD/LDAP. Email cannot be updated. Email address used for notifications is {email}.",
|
||||
"user.settings.general.emailOffice365CantUpdate": "Login occurs through Office 365. Email cannot be updated. Email address used for notifications is {email}.",
|
||||
|
|
|
|||
949
package-lock.json
generated
949
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -95,6 +95,7 @@
|
|||
"jest-cli": "24.1.0",
|
||||
"jsdom-global": "3.0.2",
|
||||
"metro-react-native-babel-preset": "0.51.1",
|
||||
"mmjstool": "github:mattermost/mattermost-utilities",
|
||||
"nyc": "13.3.0",
|
||||
"react-dom": "16.8.2",
|
||||
"redux-mock-store": "1.5.3",
|
||||
|
|
@ -110,7 +111,8 @@
|
|||
"test": "jest --forceExit --detectOpenHandles",
|
||||
"test:watch": "jest --watch",
|
||||
"test:coverage": "jest --coverage",
|
||||
"updatesnapshot": "jest --updateSnapshot"
|
||||
"updatesnapshot": "jest --updateSnapshot",
|
||||
"mmjstool": "mmjstool"
|
||||
},
|
||||
"rnpm": {
|
||||
"assets": [
|
||||
|
|
|
|||
Loading…
Reference in a new issue