Delete a bunch of unused strings
Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
parent
9b997836c2
commit
c11b8fb5e3
4 changed files with 210 additions and 112 deletions
|
@ -277,11 +277,11 @@
|
|||
},
|
||||
"icu:avatarMenuChatColors": {
|
||||
"messageformat": "Chat Color",
|
||||
"description": "One of the menu options available in the Avatar popup menu"
|
||||
"description": "(Deleted 2024/03/07) One of the menu options available in the Avatar popup menu"
|
||||
},
|
||||
"icu:avatarMenuUpdateAvailable": {
|
||||
"messageformat": "Update Signal",
|
||||
"description": "One of the menu options available in the Avatar popup menu"
|
||||
"description": "(Deleted 2024/03/07) One of the menu options available in the Avatar popup menu"
|
||||
},
|
||||
"icu:loading": {
|
||||
"messageformat": "Loading...",
|
||||
|
@ -489,63 +489,63 @@
|
|||
},
|
||||
"icu:chooseDirectory": {
|
||||
"messageformat": "Choose folder",
|
||||
"description": "Button to allow the user to find a folder on disk"
|
||||
"description": "(Deleted 2024/03/07) Button to allow the user to find a folder on disk"
|
||||
},
|
||||
"icu:chooseFile": {
|
||||
"messageformat": "Choose file",
|
||||
"description": "Button to allow the user to find a file on disk"
|
||||
"description": "(Deleted 2024/03/07) Button to allow the user to find a file on disk"
|
||||
},
|
||||
"icu:loadDataHeader": {
|
||||
"messageformat": "Load your data",
|
||||
"description": "Header shown on the first screen in the data import process"
|
||||
"description": "(Deleted 2024/03/07) Header shown on the first screen in the data import process"
|
||||
},
|
||||
"icu:loadDataDescription": {
|
||||
"messageformat": "You've just gone through the export process, and your contacts and messages are waiting patiently on your computer. Select the folder that contains your saved Signal data.",
|
||||
"description": "Introduction to the process of importing messages and contacts from disk"
|
||||
"description": "(Deleted 2024/03/07) Introduction to the process of importing messages and contacts from disk"
|
||||
},
|
||||
"icu:importChooserTitle": {
|
||||
"messageformat": "Choose directory with exported data",
|
||||
"description": "Title of the popup window used to select data previously exported"
|
||||
"description": "(Deleted 2024/03/07) Title of the popup window used to select data previously exported"
|
||||
},
|
||||
"icu:importErrorHeader": {
|
||||
"messageformat": "Something went wrong!",
|
||||
"description": "Header of the error screen after a failed import"
|
||||
"description": "(Deleted 2024/03/07) Header of the error screen after a failed import"
|
||||
},
|
||||
"icu:importingHeader": {
|
||||
"messageformat": "Loading contacts and messages",
|
||||
"description": "Header of screen shown as data is import"
|
||||
"description": "(Deleted 2024/03/07) Header of screen shown as data is import"
|
||||
},
|
||||
"icu:importErrorFirst": {
|
||||
"messageformat": "Make sure you have chosen the correct directory that contains your saved Signal data. Its name should begin with 'Signal Export.' You can also save a new copy of your data from the Chrome App.",
|
||||
"description": "Message shown if the import went wrong; first paragraph"
|
||||
"description": "(Deleted 2024/03/07) Message shown if the import went wrong; first paragraph"
|
||||
},
|
||||
"icu:importErrorSecond": {
|
||||
"messageformat": "If these steps don't work for you, please submit a debug log (View -> Debug Log) so that we can help you get migrated!",
|
||||
"description": "Message shown if the import went wrong; second paragraph"
|
||||
"description": "(Deleted 2024/03/07) Message shown if the import went wrong; second paragraph"
|
||||
},
|
||||
"icu:importAgain": {
|
||||
"messageformat": "Choose folder and try again",
|
||||
"description": "Button shown if the user runs into an error during import, allowing them to start over"
|
||||
"description": "(Deleted 2024/03/07) Button shown if the user runs into an error during import, allowing them to start over"
|
||||
},
|
||||
"icu:importCompleteHeader": {
|
||||
"messageformat": "Success!",
|
||||
"description": "Header shown on the screen at the end of a successful import process"
|
||||
"description": "(Deleted 2024/03/07) Header shown on the screen at the end of a successful import process"
|
||||
},
|
||||
"icu:importCompleteStartButton": {
|
||||
"messageformat": "Start using Signal Desktop",
|
||||
"description": "Button shown at end of successful import process, nothing left but a restart"
|
||||
"description": "(Deleted 2024/03/07) Button shown at end of successful import process, nothing left but a restart"
|
||||
},
|
||||
"icu:importCompleteLinkButton": {
|
||||
"messageformat": "Link this device to your phone",
|
||||
"description": "Button shown at end of successful 'light' import process, so the standard linking process still needs to happen"
|
||||
"description": "(Deleted 2024/03/07) Button shown at end of successful 'light' import process, so the standard linking process still needs to happen"
|
||||
},
|
||||
"icu:selectedLocation": {
|
||||
"messageformat": "your selected location",
|
||||
"description": "Message shown as the export location if we didn't capture the target directory"
|
||||
"description": "(Deleted 2024/03/07) Message shown as the export location if we didn't capture the target directory"
|
||||
},
|
||||
"icu:upgradingDatabase": {
|
||||
"messageformat": "Upgrading database. This may take some time...",
|
||||
"description": "Message shown on the loading screen when we're changing database structure on first run of a new version"
|
||||
"description": "(Deleted 2024/03/07) Message shown on the loading screen when we're changing database structure on first run of a new version"
|
||||
},
|
||||
"icu:loadingMessages--other": {
|
||||
"messageformat": "Loading messages from {daysAgo, plural, one {# day} other {# days}} ago...",
|
||||
|
@ -613,7 +613,7 @@
|
|||
},
|
||||
"icu:membersNeedingVerification": {
|
||||
"messageformat": "Your safety numbers with these group members have changed since you last verified. Click a group member to see your new safety number with them.",
|
||||
"description": "When there are multiple previously-verified group members with safety number changes, a banner will be shown. The list of contacts with safety number changes is shown, and this text introduces that list."
|
||||
"description": "(Deleted 2024/03/07) When there are multiple previously-verified group members with safety number changes, a banner will be shown. The list of contacts with safety number changes is shown, and this text introduces that list."
|
||||
},
|
||||
"icu:changedRightAfterVerify": {
|
||||
"messageformat": "The safety number you are trying to verify has changed. Please review your new safety number with {name1}. Remember, this change could mean that someone is trying to intercept your communication or that {name2} has simply reinstalled Signal.",
|
||||
|
@ -665,7 +665,7 @@
|
|||
},
|
||||
"icu:identityKeyErrorOnSend": {
|
||||
"messageformat": "Your safety number with {name1} has changed. This could either mean that someone is trying to intercept your communication or that {name2} has simply reinstalled Signal. You may wish to verify your safety number with this contact.",
|
||||
"description": "Shown when user clicks on a failed recipient in the message detail view after an identity key change"
|
||||
"description": "(Deleted 2024/03/07) Shown when user clicks on a failed recipient in the message detail view after an identity key change"
|
||||
},
|
||||
"icu:sendAnyway": {
|
||||
"messageformat": "Send anyway",
|
||||
|
@ -693,11 +693,11 @@
|
|||
},
|
||||
"icu:noLongerVerified": {
|
||||
"messageformat": "Your safety number with {name} has changed and is no longer verified. Click to show.",
|
||||
"description": "Shown in conversation banner when user's safety number has changed, but they were previously verified."
|
||||
"description": "(Deleted 2024/03/07) Shown in conversation banner when user's safety number has changed, but they were previously verified."
|
||||
},
|
||||
"icu:multipleNoLongerVerified": {
|
||||
"messageformat": "Your safety numbers with multiple members of this group have changed and are no longer verified. Click to show.",
|
||||
"description": "Shown in conversation banner when more than one group member's safety number has changed, but they were previously verified."
|
||||
"description": "(Deleted 2024/03/07) Shown in conversation banner when more than one group member's safety number has changed, but they were previously verified."
|
||||
},
|
||||
"icu:debugLogExplanation": {
|
||||
"messageformat": "When you click Submit, your log will be posted online for 30 days at a unique, unpublished URL. You may Save it locally first.",
|
||||
|
@ -737,14 +737,14 @@
|
|||
},
|
||||
"icu:gotIt": {
|
||||
"messageformat": "Got it!",
|
||||
"description": "Label for a button that dismisses a dialog. The user clicks it to confirm that they understand the message in the dialog."
|
||||
"description": "(Deleted 2024/03/07) Label for a button that dismisses a dialog. The user clicks it to confirm that they understand the message in the dialog."
|
||||
},
|
||||
"icu:submit": {
|
||||
"messageformat": "Submit"
|
||||
},
|
||||
"icu:acceptNewKey": {
|
||||
"messageformat": "Accept",
|
||||
"description": "Label for a button to accept a new safety number"
|
||||
"description": "(Deleted 2024/03/07) Label for a button to accept a new safety number"
|
||||
},
|
||||
"icu:SafetyNumberViewer__markAsVerified": {
|
||||
"messageformat": "Mark as verified",
|
||||
|
@ -772,11 +772,11 @@
|
|||
},
|
||||
"icu:isVerified": {
|
||||
"messageformat": "You have verified your safety number with {name}.",
|
||||
"description": "Summary state shown at top of the safety number screen if user has verified contact."
|
||||
"description": "(Deleted 2024/03/07) Summary state shown at top of the safety number screen if user has verified contact."
|
||||
},
|
||||
"icu:isNotVerified": {
|
||||
"messageformat": "You have not verified your safety number with {name}.",
|
||||
"description": "Summary state shown at top of the safety number screen if user has not verified contact."
|
||||
"description": "(Deleted 2024/03/07) Summary state shown at top of the safety number screen if user has not verified contact."
|
||||
},
|
||||
"icu:verified": {
|
||||
"messageformat": "Verified"
|
||||
|
@ -786,7 +786,8 @@
|
|||
"description": "Header for a key change dialog"
|
||||
},
|
||||
"icu:identityChanged": {
|
||||
"messageformat": "Your safety number with this contact has changed. This could either mean that someone is trying to intercept your communication, or this contact simply reinstalled Signal. You may wish to verify the new safety number below."
|
||||
"messageformat": "Your safety number with this contact has changed. This could either mean that someone is trying to intercept your communication, or this contact simply reinstalled Signal. You may wish to verify the new safety number below.",
|
||||
"description": "(Deleted 2024/03/07) undefined"
|
||||
},
|
||||
"icu:incomingError": {
|
||||
"messageformat": "Error handling incoming message"
|
||||
|
@ -833,11 +834,11 @@
|
|||
},
|
||||
"icu:clickToSave": {
|
||||
"messageformat": "Click to save",
|
||||
"description": "Hover text for attachment filenames"
|
||||
"description": "(Deleted 2024/03/07) Hover text for attachment filenames"
|
||||
},
|
||||
"icu:unnamedFile": {
|
||||
"messageformat": "Unnamed File",
|
||||
"description": "Hover text for attachment filenames"
|
||||
"description": "(Deleted 2024/03/07) Hover text for attachment filenames"
|
||||
},
|
||||
"icu:voiceMessage": {
|
||||
"messageformat": "Voice Message",
|
||||
|
@ -1115,7 +1116,7 @@
|
|||
},
|
||||
"icu:messageFoundButNotLoaded": {
|
||||
"messageformat": "Original message found, but not loaded. Scroll up to load it.",
|
||||
"description": "Shown in toast if user clicks on quote references messages not loaded in view, but in database"
|
||||
"description": "(Deleted 2024/03/07) Shown in toast if user clicks on quote references messages not loaded in view, but in database"
|
||||
},
|
||||
"icu:voiceRecording--start": {
|
||||
"messageformat": "Start recording voice message",
|
||||
|
@ -1123,11 +1124,11 @@
|
|||
},
|
||||
"icu:voiceRecording--complete": {
|
||||
"messageformat": "Complete voice message and send",
|
||||
"description": "Tooltip for green complete voice message and send"
|
||||
"description": "(Deleted 2024/03/07) Tooltip for green complete voice message and send"
|
||||
},
|
||||
"icu:voiceRecording--cancel": {
|
||||
"messageformat": "Cancel voice message",
|
||||
"description": "Tooltip for red button to cancel voice message"
|
||||
"description": "(Deleted 2024/03/07) Tooltip for red button to cancel voice message"
|
||||
},
|
||||
"icu:voiceRecordingInterruptedMax": {
|
||||
"messageformat": "Voice message recording stopped because the maximum time limit was reached.",
|
||||
|
@ -1135,7 +1136,7 @@
|
|||
},
|
||||
"icu:voiceRecordingInterruptedBlur": {
|
||||
"messageformat": "Voice message recording stopped because you switched to another app.",
|
||||
"description": "Confirmation dialog message for when the voice recording is interrupted due to app losing focus"
|
||||
"description": "(Deleted 2024/03/07) Confirmation dialog message for when the voice recording is interrupted due to app losing focus"
|
||||
},
|
||||
"icu:voiceNoteLimit": {
|
||||
"messageformat": "Voice messages are limited to one hour. Recording will stop if you switch to another app.",
|
||||
|
@ -1163,7 +1164,7 @@
|
|||
},
|
||||
"icu:replyingTo": {
|
||||
"messageformat": "Replying to {name}",
|
||||
"description": "Shown in iOS theme when you or someone quotes to a message which is not from you"
|
||||
"description": "(Deleted 2024/03/07) Shown in iOS theme when you or someone quotes to a message which is not from you"
|
||||
},
|
||||
"icu:audioPermissionNeeded": {
|
||||
"messageformat": "To send voice messages, allow Signal Desktop to access your microphone.",
|
||||
|
@ -1183,7 +1184,7 @@
|
|||
},
|
||||
"icu:showSettings": {
|
||||
"messageformat": "Show Settings",
|
||||
"description": "A button shown in dialog requesting the user to turn on audio permissions"
|
||||
"description": "(Deleted 2024/03/07) A button shown in dialog requesting the user to turn on audio permissions"
|
||||
},
|
||||
"icu:audio": {
|
||||
"messageformat": "Audio",
|
||||
|
@ -1207,7 +1208,7 @@
|
|||
},
|
||||
"icu:muted": {
|
||||
"messageformat": "Muted",
|
||||
"description": "Shown in a button when a conversation is muted"
|
||||
"description": "(Deleted 2024/03/07) Shown in a button when a conversation is muted"
|
||||
},
|
||||
"icu:mute": {
|
||||
"messageformat": "Mute",
|
||||
|
@ -1235,13 +1236,15 @@
|
|||
"messageformat": "Discard"
|
||||
},
|
||||
"icu:failedToSend": {
|
||||
"messageformat": "Failed to send to some recipients. Check your network connection."
|
||||
"messageformat": "Failed to send to some recipients. Check your network connection.",
|
||||
"description": "(Deleted 2024/03/07) undefined"
|
||||
},
|
||||
"icu:error": {
|
||||
"messageformat": "Error"
|
||||
},
|
||||
"icu:messageDetail": {
|
||||
"messageformat": "Message Detail"
|
||||
"messageformat": "Message Detail",
|
||||
"description": "(Deleted 2024/03/07) undefined"
|
||||
},
|
||||
"icu:delete": {
|
||||
"messageformat": "Delete"
|
||||
|
@ -1287,7 +1290,7 @@
|
|||
},
|
||||
"icu:to": {
|
||||
"messageformat": "To",
|
||||
"description": "Label for the receiver of a message"
|
||||
"description": "(Deleted 2024/03/07) Label for the receiver of a message"
|
||||
},
|
||||
"icu:searchResultHeader--sender-to-group": {
|
||||
"messageformat": "{sender} to {receiverGroup}",
|
||||
|
@ -1318,7 +1321,8 @@
|
|||
"description": "Placeholder text in the message entry field"
|
||||
},
|
||||
"icu:groupMembers": {
|
||||
"messageformat": "Group members"
|
||||
"messageformat": "Group members",
|
||||
"description": "(Deleted 2024/03/07) undefined"
|
||||
},
|
||||
"icu:showMembers": {
|
||||
"messageformat": "Show members"
|
||||
|
@ -1360,14 +1364,15 @@
|
|||
},
|
||||
"icu:ContactModal__showSafetyNumber": {
|
||||
"messageformat": "View safety number",
|
||||
"description": "Contact modal, label for button to show safety number modal"
|
||||
"description": "(Deleted 2024/03/07) Contact modal, label for button to show safety number modal"
|
||||
},
|
||||
"icu:viewRecentMedia": {
|
||||
"messageformat": "View recent media",
|
||||
"description": "This is a menu item for viewing all media (images + video) in a conversation, using the imperative case, as in a command."
|
||||
},
|
||||
"icu:theirIdentityUnknown": {
|
||||
"messageformat": "You haven't exchanged any messages with this contact yet. Your safety number with them will be available after the first message."
|
||||
"messageformat": "You haven't exchanged any messages with this contact yet. Your safety number with them will be available after the first message.",
|
||||
"description": "(Deleted 2024/03/07) undefined"
|
||||
},
|
||||
"icu:back": {
|
||||
"messageformat": "Back",
|
||||
|
@ -1547,7 +1552,7 @@
|
|||
},
|
||||
"icu:quoteThumbnailAlt": {
|
||||
"messageformat": "Thumbnail of image from quoted message",
|
||||
"description": "Used in alt tag of thumbnail images inside of an embedded message quote"
|
||||
"description": "(Deleted 2024/03/07) Used in alt tag of thumbnail images inside of an embedded message quote"
|
||||
},
|
||||
"icu:imageAttachmentAlt": {
|
||||
"messageformat": "Image attached to message",
|
||||
|
@ -1575,15 +1580,15 @@
|
|||
},
|
||||
"icu:fileIconAlt": {
|
||||
"messageformat": "File icon",
|
||||
"description": "Used in the media gallery documents tab to visually represent a file"
|
||||
"description": "(Deleted 2024/03/07) Used in the media gallery documents tab to visually represent a file"
|
||||
},
|
||||
"icu:installWelcome": {
|
||||
"messageformat": "Welcome to Signal Desktop",
|
||||
"description": "Welcome title on the install page"
|
||||
"description": "(Deleted 2024/03/07) Welcome title on the install page"
|
||||
},
|
||||
"icu:installTagline": {
|
||||
"messageformat": "Privacy is possible. Signal makes it easy.",
|
||||
"description": "Tagline displayed under 'installWelcome' string on the install page"
|
||||
"description": "(Deleted 2024/03/07) Tagline displayed under 'installWelcome' string on the install page"
|
||||
},
|
||||
"icu:linkedDevices": {
|
||||
"messageformat": "Linked Devices",
|
||||
|
@ -1618,8 +1623,8 @@
|
|||
"description": "Instructions on the device link screen"
|
||||
},
|
||||
"icu:Install__qr-failed": {
|
||||
"messageformat": "(deleted 2023/09/05) The QR code couldn't load. Check your internet and try again. <learnMoreLink>Learn more</learnMoreLink>",
|
||||
"description": "Shown on the install screen if the QR code fails to load"
|
||||
"messageformat": "The QR code couldn't load. Check your internet and try again. <learnMoreLink>Learn more</learnMoreLink>",
|
||||
"description": "(Deleted 2023/09/05) Shown on the install screen if the QR code fails to load"
|
||||
},
|
||||
"icu:Install__qr-failed-load": {
|
||||
"messageformat": "The QR code couldn't load. Check your internet and try again. <retry>Retry</retry>",
|
||||
|
@ -1822,11 +1827,11 @@
|
|||
},
|
||||
"icu:calling__button--ring__off": {
|
||||
"messageformat": "Notify, don't ring",
|
||||
"description": "Button tooltip label for turning ringing off"
|
||||
"description": "(Deleted 2024/03/07) Button tooltip label for turning ringing off"
|
||||
},
|
||||
"icu:calling__button--ring__on": {
|
||||
"messageformat": "Enable ringing",
|
||||
"description": "Button tooltip label for turning ringing on"
|
||||
"description": "(Deleted 2024/03/07) Button tooltip label for turning ringing on"
|
||||
},
|
||||
"icu:CallingButton__ring-off": {
|
||||
"messageformat": "Turn off ringing",
|
||||
|
@ -2026,7 +2031,7 @@
|
|||
},
|
||||
"icu:general": {
|
||||
"messageformat": "General",
|
||||
"description": "Header for general options on the settings screen"
|
||||
"description": "(Deleted 2024/03/07) Header for general options on the settings screen"
|
||||
},
|
||||
"icu:spellCheckDescription": {
|
||||
"messageformat": "Spell check text entered in message composition box",
|
||||
|
@ -2078,7 +2083,7 @@
|
|||
},
|
||||
"icu:deleteAllDataButton": {
|
||||
"messageformat": "Delete all data",
|
||||
"description": "Text of the button that deletes all data"
|
||||
"description": "(Deleted 2024/03/07) Text of the button that deletes all data"
|
||||
},
|
||||
"icu:deleteAllDataProgress": {
|
||||
"messageformat": "Disconnecting and deleting all data",
|
||||
|
@ -2094,15 +2099,15 @@
|
|||
},
|
||||
"icu:notifications": {
|
||||
"messageformat": "Notifications",
|
||||
"description": "Header for notification settings"
|
||||
"description": "(Deleted 2024/03/07) Header for notification settings"
|
||||
},
|
||||
"icu:notificationSettingsDialog": {
|
||||
"messageformat": "When messages arrive, display notifications that reveal:",
|
||||
"description": "Explain the purpose of the notification settings"
|
||||
"description": "(Deleted 2024/03/07) Explain the purpose of the notification settings"
|
||||
},
|
||||
"icu:disableNotifications": {
|
||||
"messageformat": "Disable notifications",
|
||||
"description": "Label for disabling notifications"
|
||||
"description": "(Deleted 2024/03/07) Label for disabling notifications"
|
||||
},
|
||||
"icu:nameAndMessage": {
|
||||
"messageformat": "Name, content, and actions",
|
||||
|
@ -2156,15 +2161,15 @@
|
|||
},
|
||||
"icu:showMore": {
|
||||
"messageformat": "Details",
|
||||
"description": "Displays the details of a key change"
|
||||
"description": "(Deleted 2024/03/07) Displays the details of a key change"
|
||||
},
|
||||
"icu:showLess": {
|
||||
"messageformat": "Hide details",
|
||||
"description": "Hides the details of a key change"
|
||||
"description": "(Deleted 2024/03/07) Hides the details of a key change"
|
||||
},
|
||||
"icu:learnMore": {
|
||||
"messageformat": "Learn more about verifying safety numbers",
|
||||
"description": "Text that links to a support article on verifying safety numbers"
|
||||
"description": "(Deleted 2024/03/07) Text that links to a support article on verifying safety numbers"
|
||||
},
|
||||
"icu:expiredWarning": {
|
||||
"messageformat": "This version of Signal Desktop has expired. Please upgrade to the latest version to continue messaging.",
|
||||
|
@ -2180,7 +2185,7 @@
|
|||
},
|
||||
"icu:unregisteredUser": {
|
||||
"messageformat": "Number is not registered",
|
||||
"description": "Error message displayed when sending to an unregistered user."
|
||||
"description": "(Deleted 2024/03/07) Error message displayed when sending to an unregistered user."
|
||||
},
|
||||
"icu:sync": {
|
||||
"messageformat": "Import contacts",
|
||||
|
@ -2192,7 +2197,7 @@
|
|||
},
|
||||
"icu:lastSynced": {
|
||||
"messageformat": "Last import at",
|
||||
"description": "Label for date and time of last sync operation"
|
||||
"description": "(Deleted 2024/03/07) Label for date and time of last sync operation"
|
||||
},
|
||||
"icu:syncNow": {
|
||||
"messageformat": "Import now",
|
||||
|
@ -2352,7 +2357,7 @@
|
|||
},
|
||||
"icu:yourSafetyNumberWith": {
|
||||
"messageformat": "Your safety number with {name1}:",
|
||||
"description": "Heading for safety number view"
|
||||
"description": "(Deleted 2024/03/07) Heading for safety number view"
|
||||
},
|
||||
"icu:themeLight": {
|
||||
"messageformat": "Light",
|
||||
|
@ -2384,7 +2389,7 @@
|
|||
},
|
||||
"icu:startConversation": {
|
||||
"messageformat": "Start new chat",
|
||||
"description": "Label underneath number a user enters that is not an existing contact"
|
||||
"description": "(Deleted 2024/03/07) Label underneath number a user enters that is not an existing contact"
|
||||
},
|
||||
"icu:newConversation": {
|
||||
"messageformat": "New chat",
|
||||
|
@ -2516,15 +2521,15 @@
|
|||
},
|
||||
"icu:notSupportedSMS": {
|
||||
"messageformat": "SMS/MMS messages are not supported.",
|
||||
"description": "Label underneath number informing user that SMS is not supported on desktop"
|
||||
"description": "(Deleted 2024/03/07) Label underneath number informing user that SMS is not supported on desktop"
|
||||
},
|
||||
"icu:newPhoneNumber": {
|
||||
"messageformat": "Enter a phone number to add a contact.",
|
||||
"description": "Placeholder for adding a new number to a contact"
|
||||
"description": "(Deleted 2024/03/07) Placeholder for adding a new number to a contact"
|
||||
},
|
||||
"icu:invalidNumberError": {
|
||||
"messageformat": "Invalid number",
|
||||
"description": "When a person inputs a number that is invalid"
|
||||
"description": "(Deleted 2024/03/07) When a person inputs a number that is invalid"
|
||||
},
|
||||
"icu:unlinkedWarning": {
|
||||
"messageformat": "Click to relink Signal Desktop to your mobile device to continue messaging."
|
||||
|
@ -2533,7 +2538,8 @@
|
|||
"messageformat": "Unlinked"
|
||||
},
|
||||
"icu:relink": {
|
||||
"messageformat": "Relink"
|
||||
"messageformat": "Relink",
|
||||
"description": "(Deleted 2024/03/07) undefined"
|
||||
},
|
||||
"icu:autoUpdateNewVersionTitle": {
|
||||
"messageformat": "Update Available"
|
||||
|
@ -2558,7 +2564,8 @@
|
|||
"messageformat": "Restart Signal"
|
||||
},
|
||||
"icu:autoUpdateLaterButtonLabel": {
|
||||
"messageformat": "Later"
|
||||
"messageformat": "Later",
|
||||
"description": "(Deleted 2024/03/07) undefined"
|
||||
},
|
||||
"icu:autoUpdateIgnoreButtonLabel": {
|
||||
"messageformat": "Ignore update"
|
||||
|
@ -2749,7 +2756,7 @@
|
|||
},
|
||||
"icu:message--giftBadge--view": {
|
||||
"messageformat": "View",
|
||||
"description": "Shown when you've sent a gift badge to someone then opened it"
|
||||
"description": "(Deleted 2024/03/07) Shown when you've sent a gift badge to someone then opened it"
|
||||
},
|
||||
"icu:message--donation--view": {
|
||||
"messageformat": "View",
|
||||
|
@ -2781,7 +2788,7 @@
|
|||
},
|
||||
"icu:stickers--StickerManager--title": {
|
||||
"messageformat": "Stickers",
|
||||
"description": "Title for the sticker manager"
|
||||
"description": "(Deleted 2024/03/07) Title for the sticker manager"
|
||||
},
|
||||
"icu:stickers--StickerManager--Available": {
|
||||
"messageformat": "Available",
|
||||
|
@ -3513,7 +3520,7 @@
|
|||
},
|
||||
"icu:ConversationHero--membership-added": {
|
||||
"messageformat": "{name} added you to the group.",
|
||||
"description": "Shown Indicates that you were added to a group by a given individual."
|
||||
"description": "(Deleted 2024/03/07) Shown Indicates that you were added to a group by a given individual."
|
||||
},
|
||||
"icu:no-groups-in-common": {
|
||||
"messageformat": "No groups in common",
|
||||
|
@ -4717,7 +4724,7 @@
|
|||
},
|
||||
"icu:ContactModal--message": {
|
||||
"messageformat": "Message",
|
||||
"description": "Button text for send message button in Group Contact Details modal"
|
||||
"description": "(Deleted 2024/03/07) Button text for send message button in Group Contact Details modal"
|
||||
},
|
||||
"icu:ContactModal--rm-admin": {
|
||||
"messageformat": "Remove as admin",
|
||||
|
@ -4961,7 +4968,7 @@
|
|||
},
|
||||
"icu:PendingInvites--invites": {
|
||||
"messageformat": "Invited by you",
|
||||
"description": "This is the title list of all invites"
|
||||
"description": "(Deleted 2024/03/07) This is the title list of all invites"
|
||||
},
|
||||
"icu:PendingInvites--invited-by-you": {
|
||||
"messageformat": "Invited by you",
|
||||
|
@ -5077,23 +5084,23 @@
|
|||
},
|
||||
"icu:AvatarInput--no-photo-label--group": {
|
||||
"messageformat": "Add a group photo",
|
||||
"description": "The label for the avatar uploader when no group photo is selected"
|
||||
"description": "(Deleted 2024/03/07) The label for the avatar uploader when no group photo is selected"
|
||||
},
|
||||
"icu:AvatarInput--no-photo-label--profile": {
|
||||
"messageformat": "Add a photo",
|
||||
"description": "The label for the avatar uploader when no profile photo is selected"
|
||||
"description": "(Deleted 2024/03/07) The label for the avatar uploader when no profile photo is selected"
|
||||
},
|
||||
"icu:AvatarInput--change-photo-label": {
|
||||
"messageformat": "Change photo",
|
||||
"description": "The label for the avatar uploader when a photo is selected"
|
||||
"description": "(Deleted 2024/03/07) The label for the avatar uploader when a photo is selected"
|
||||
},
|
||||
"icu:AvatarInput--upload-photo-choice": {
|
||||
"messageformat": "Upload photo",
|
||||
"description": "The button text when you click on an uploaded avatar and want to upload a new one"
|
||||
"description": "(Deleted 2024/03/07) The button text when you click on an uploaded avatar and want to upload a new one"
|
||||
},
|
||||
"icu:AvatarInput--remove-photo-choice": {
|
||||
"messageformat": "Remove photo",
|
||||
"description": "The button text when you click on an uploaded avatar and want to remove it"
|
||||
"description": "(Deleted 2024/03/07) The button text when you click on an uploaded avatar and want to remove it"
|
||||
},
|
||||
"icu:ContactPill--remove": {
|
||||
"messageformat": "Remove contact",
|
||||
|
@ -5101,7 +5108,7 @@
|
|||
},
|
||||
"icu:ComposeErrorDialog--close": {
|
||||
"messageformat": "Okay",
|
||||
"description": "The text on the button when there's an error in the composer"
|
||||
"description": "(Deleted 2024/03/07) The text on the button when there's an error in the composer"
|
||||
},
|
||||
"icu:NewlyCreatedGroupInvitedContactsDialog--title": {
|
||||
"messageformat": "{count, plural, one {Invitation sent} other {# invitations sent}}",
|
||||
|
@ -5345,7 +5352,7 @@
|
|||
},
|
||||
"icu:ChatColorPicker__global-chat-color": {
|
||||
"messageformat": "Global Chat Color",
|
||||
"description": "Modal title for the chat color picker and editor for all conversations"
|
||||
"description": "(Deleted 2024/03/07) Modal title for the chat color picker and editor for all conversations"
|
||||
},
|
||||
"icu:ChatColorPicker__menu-title": {
|
||||
"messageformat": "Chat Color",
|
||||
|
@ -5645,7 +5652,7 @@
|
|||
},
|
||||
"icu:ProfileEditor--username--check-username-taken": {
|
||||
"messageformat": "This username is taken.",
|
||||
"description": "Shown if user has attempted to save a username which is not available"
|
||||
"description": "(Deleted 2024/03/07) Shown if user has attempted to save a username which is not available"
|
||||
},
|
||||
"icu:ProfileEditor--username--general-error": {
|
||||
"messageformat": "Your username couldn’t be saved. Check your connection and try again.",
|
||||
|
@ -5673,7 +5680,7 @@
|
|||
},
|
||||
"icu:ProfileEditor--username--delete-username": {
|
||||
"messageformat": "Delete username",
|
||||
"description": "Shown as aria label for trash icon next to username"
|
||||
"description": "(Deleted 2024/03/07) Shown as aria label for trash icon next to username"
|
||||
},
|
||||
"icu:ProfileEditor--username--confirm-delete-body-2": {
|
||||
"messageformat": "This will remove your username and disable your QR code and link. “{username}” will be available for others to claim. Are you sure?",
|
||||
|
@ -5697,7 +5704,7 @@
|
|||
},
|
||||
"icu:ProfileEditor--username--copy-link": {
|
||||
"messageformat": "Copy link",
|
||||
"description": "Shown as a button in context menu next to username. The action of the button is to put a username link into the clipboard."
|
||||
"description": "(Deleted 2024/03/07) Shown as a button in context menu next to username. The action of the button is to put a username link into the clipboard."
|
||||
},
|
||||
"icu:ProfileEditor--username--delete": {
|
||||
"messageformat": "Delete",
|
||||
|
@ -5957,11 +5964,11 @@
|
|||
},
|
||||
"icu:Preferences--see-me": {
|
||||
"messageformat": "See my phone number",
|
||||
"description": "Label for the see my phone number setting"
|
||||
"description": "(Deleted 2024/03/07) Label for the see my phone number setting"
|
||||
},
|
||||
"icu:Preferences--find-me": {
|
||||
"messageformat": "Find me by my phone number",
|
||||
"description": "Label for the find me by my phone number setting"
|
||||
"description": "(Deleted 2024/03/07) Label for the find me by my phone number setting"
|
||||
},
|
||||
"icu:Preferences--read-receipts": {
|
||||
"messageformat": "Read receipts",
|
||||
|
@ -6073,27 +6080,33 @@
|
|||
},
|
||||
"icu:NSIS__retry-dialog--first-line": {
|
||||
"messageformat": "Signal cannot be closed.",
|
||||
"description": "First line of the dialog displayed when Windows installer can't close application automatically and needs user intervention to complete the installation."
|
||||
"description": "First line of the dialog displayed when Windows installer can't close application automatically and needs user intervention to complete the installation.",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:NSIS__retry-dialog--second-line": {
|
||||
"messageformat": "Please close it manually and click Retry to continue.",
|
||||
"description": "Second line of the dialog displayed when Windows installer can't close application automatically and needs user intervention to complete the installation."
|
||||
"description": "Second line of the dialog displayed when Windows installer can't close application automatically and needs user intervention to complete the installation.",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:NSIS__appRunning": {
|
||||
"messageformat": "{appName} is running.\nClick OK to close it.\nIf it doesn't close, try closing it manually.",
|
||||
"description": "The contents of a dialog displayed when Windows installer detect that the application is running and asks user to close it. Note: please keep the line breaks so that the text occupies three separate lines"
|
||||
"description": "The contents of a dialog displayed when Windows installer detect that the application is running and asks user to close it. Note: please keep the line breaks so that the text occupies three separate lines",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:NSIS__decompressionFailed": {
|
||||
"messageformat": "Failed to decompress files. Please try running the installer again.",
|
||||
"description": "Displayed when Windows installer cannot decompress application files"
|
||||
"description": "Displayed when Windows installer cannot decompress application files",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:NSIS__uninstallFailed": {
|
||||
"messageformat": "Failed to uninstall old application files. Please try running the installer again.",
|
||||
"description": "Displayed when Windows installer cannot uninstall the old application"
|
||||
"description": "Displayed when Windows installer cannot uninstall the old application",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:NSIS__semver-downgrade": {
|
||||
"messageformat": "A newer version of Signal is already installed. Are you sure you want to continue?",
|
||||
"description": "A text of the dialog displayed when user tries to overwrite Signal installation with an older version."
|
||||
"description": "A text of the dialog displayed when user tries to overwrite Signal installation with an older version.",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:CrashReportDialog__title": {
|
||||
"messageformat": "Application crashed",
|
||||
|
@ -6141,7 +6154,7 @@
|
|||
},
|
||||
"icu:MediaEditor__control--sticker": {
|
||||
"messageformat": "Stickers",
|
||||
"description": "Label for the sticker button in the media editor"
|
||||
"description": "(Deleted 2024/03/07) Label for the sticker button in the media editor"
|
||||
},
|
||||
"icu:MediaEditor__control--crop": {
|
||||
"messageformat": "Crop and rotate",
|
||||
|
@ -6169,7 +6182,7 @@
|
|||
},
|
||||
"icu:MediaEditor__text--underline": {
|
||||
"messageformat": "Underline",
|
||||
"description": "Describes what attribute the color picker will change on the text"
|
||||
"description": "(Deleted 2024/03/07) Describes what attribute the color picker will change on the text"
|
||||
},
|
||||
"icu:MediaEditor__draw--pen": {
|
||||
"messageformat": "Pen",
|
||||
|
@ -6213,11 +6226,11 @@
|
|||
},
|
||||
"icu:MediaEditor__crop--crop": {
|
||||
"messageformat": "Crop",
|
||||
"description": "Performs the crop"
|
||||
"description": "(Deleted 2024/03/07) Performs the crop"
|
||||
},
|
||||
"icu:MediaEditor__caption-button": {
|
||||
"messageformat": "Add a message",
|
||||
"description": "Label of the button on the bottom of the media editor that trigger the add-caption dialog"
|
||||
"description": "(Deleted 2024/03/07) Label of the button on the bottom of the media editor that trigger the add-caption dialog"
|
||||
},
|
||||
"icu:MediaEditor__crop-preset--freeform": {
|
||||
"messageformat": "Freeform",
|
||||
|
@ -6421,7 +6434,7 @@
|
|||
},
|
||||
"icu:StoriesSettings__new-list--visibility": {
|
||||
"messageformat": "Only you can see the name of this story.",
|
||||
"description": "Explanation about the visibility of custom distribution list names"
|
||||
"description": "(Deleted 2024/03/07) Explanation about the visibility of custom distribution list names"
|
||||
},
|
||||
"icu:StoriesSettings__custom-story-subtitle": {
|
||||
"messageformat": "Custom story",
|
||||
|
@ -6497,7 +6510,7 @@
|
|||
},
|
||||
"icu:StoriesSettings__mine__all--description": {
|
||||
"messageformat": "Share with all connections",
|
||||
"description": "Description of button StoriesSettings__mine__all--label"
|
||||
"description": "(Deleted 2024/03/07) Description of button StoriesSettings__mine__all--label"
|
||||
},
|
||||
"icu:StoriesSettings__mine__exclude--label": {
|
||||
"messageformat": "All except...",
|
||||
|
@ -6505,7 +6518,7 @@
|
|||
},
|
||||
"icu:StoriesSettings__mine__exclude--description": {
|
||||
"messageformat": "{num, plural, one {#} other {#}} people excluded",
|
||||
"description": "Description of how many people are excluded in a list"
|
||||
"description": "(Deleted 2024/03/07) Description of how many people are excluded in a list"
|
||||
},
|
||||
"icu:StoriesSettings__mine__only--label": {
|
||||
"messageformat": "Only share with...",
|
||||
|
@ -6513,11 +6526,11 @@
|
|||
},
|
||||
"icu:StoriesSettings__mine__only--description": {
|
||||
"messageformat": "Only share with selected people",
|
||||
"description": "Description of button StoriesSettings__mine__only--label"
|
||||
"description": "(Deleted 2024/03/07) Description of button StoriesSettings__mine__only--label"
|
||||
},
|
||||
"icu:StoriesSettings__mine__only--description--people": {
|
||||
"messageformat": "{num, number} people",
|
||||
"description": "Description of how many people are in the exclusive allow list"
|
||||
"description": "(Deleted 2024/03/07) Description of how many people are in the exclusive allow list"
|
||||
},
|
||||
"icu:StoriesSettings__mine__disclaimer--link": {
|
||||
"messageformat": "Choose who can view your story. Changes won't affect stories you've already sent. <learnMoreLink>Learn more.</learnMoreLink>",
|
||||
|
@ -6629,19 +6642,19 @@
|
|||
},
|
||||
"icu:SendStoryModal__my-stories-description-all": {
|
||||
"messageformat": "All Signal connections · {viewersCount, plural, one {# viewer} other {# viewers}}",
|
||||
"description": "Shown as a subtitle under My Stories option in the send-story-to dialog when not exluding anyone"
|
||||
"description": "(Deleted 2024/03/07) Shown as a subtitle under My Stories option in the send-story-to dialog when not exluding anyone"
|
||||
},
|
||||
"icu:SendStoryModal__my-stories-description-excluding": {
|
||||
"messageformat": "All Signal connections · {excludedCount, plural, one {# excluded} other {# excluded}}",
|
||||
"description": "Shown as a subtitle under My Stories option in the send-story-to dialog when excluding some"
|
||||
"description": "(Deleted 2024/03/07) Shown as a subtitle under My Stories option in the send-story-to dialog when excluding some"
|
||||
},
|
||||
"icu:SendStoryModal__private-story-description": {
|
||||
"messageformat": "Private story · {viewersCount, plural, one {# viewer} other {# viewers}}",
|
||||
"description": "Shown as a subtitle of each private story in the send-story-to dialog"
|
||||
"description": "(Deleted 2024/03/07) Shown as a subtitle of each private story in the send-story-to dialog"
|
||||
},
|
||||
"icu:SendStoryModal__group-story-description": {
|
||||
"messageformat": "Group story · {membersCount, plural, one {# member} other {# members}}",
|
||||
"description": "Shown as a subtitle of each group story in the send-story-to dialog"
|
||||
"description": "(Deleted 2024/03/07) Shown as a subtitle of each group story in the send-story-to dialog"
|
||||
},
|
||||
"icu:Stories__settings-toggle--title": {
|
||||
"messageformat": "Share & View Stories",
|
||||
|
@ -6841,7 +6854,7 @@
|
|||
},
|
||||
"icu:StoryCreator__input-placeholder": {
|
||||
"messageformat": "Add text",
|
||||
"description": "Placeholder to add text"
|
||||
"description": "(Deleted 2024/03/07) Placeholder to add text"
|
||||
},
|
||||
"icu:StoryCreator__text--regular": {
|
||||
"messageformat": "Regular",
|
||||
|
@ -7217,34 +7230,42 @@
|
|||
},
|
||||
"icu:WhatsNew__bugfixes": {
|
||||
"messageformat": "This version contains a number of small tweaks and bug fixes to keep Signal running smoothly.",
|
||||
"description": "Release notes for releases that only include bug fixes"
|
||||
"description": "Release notes for releases that only include bug fixes",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:WhatsNew__bugfixes--1": {
|
||||
"messageformat": "Additional small tweaks, bug fixes, and performance enhancements. Thanks for using Signal!",
|
||||
"description": "Release notes for releases that only include bug fixes"
|
||||
"description": "Release notes for releases that only include bug fixes",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:WhatsNew__bugfixes--2": {
|
||||
"messageformat": "Handful of bug fixes to keep your app running smoothly. More exciting changes on the horizon! ",
|
||||
"description": "Release notes for releases that only include bug fixes"
|
||||
"description": "Release notes for releases that only include bug fixes",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:WhatsNew__bugfixes--3": {
|
||||
"messageformat": "Tweaks, bug fixes, and performance enhancements. Keep on texting, calling, and video chatting as usual.",
|
||||
"description": "Release notes for releases that only include bug fixes"
|
||||
"description": "Release notes for releases that only include bug fixes",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:WhatsNew__bugfixes--4": {
|
||||
"messageformat": "Hard at work fixing bugs and making other performance improvements to keep the app running smoothly for you. ",
|
||||
"description": "Release notes for releases that only include bug fixes"
|
||||
"description": "Release notes for releases that only include bug fixes",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:WhatsNew__bugfixes--5": {
|
||||
"messageformat": "Additional small tweaks, bug fixes, and assorted plans for the future.",
|
||||
"description": "Release notes for releases that only include bug fixes"
|
||||
"description": "Release notes for releases that only include bug fixes",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:WhatsNew__bugfixes--6": {
|
||||
"messageformat": "Small tweaks, bug fixes, and performance enhancements. Thanks for using Signal!",
|
||||
"description": "Release notes for releases that only include bug fixes"
|
||||
"description": "Release notes for releases that only include bug fixes",
|
||||
"ignoreUnused": true
|
||||
},
|
||||
"icu:WhatsNew__v7.1--0": {
|
||||
"messageformat": "This update enables support for all of the new emoji characters in Emoji version 15.1. People keep asking us what our favorite new emoji is, but answering that question is a “lime” we won't cross."
|
||||
"messageformat": "This update enables support for all of the new emoji characters in Emoji version 15.1. People keep asking us what our favorite new emoji is, but answering that question is a “lime” we won't cross.",
|
||||
"description": "(Deleted 2024/03/07)"
|
||||
},
|
||||
"icu:WhatsNew__v7.2--0": {
|
||||
"messageformat": "Thanks to the performance improvements in this release, opening large group chats is faster than ever. If you're in a group with several hundred people that likes to debate the existence of parallel universes, you now live in a timeline where it takes a lot less time to show the timeline of people talking about timelines."
|
||||
|
|
|
@ -23,10 +23,11 @@
|
|||
"build-release": "yarn run build",
|
||||
"sign-release": "node ts/updater/generateSignature.js",
|
||||
"notarize": "echo 'No longer necessary'",
|
||||
"get-strings": "ts-node ts/scripts/get-strings.ts && ts-node ts/scripts/gen-nsis-script.ts && ts-node ts/scripts/gen-locales-config.ts && run-p get-strings:locales get-strings:countries",
|
||||
"get-strings": "ts-node ts/scripts/get-strings.ts && ts-node ts/scripts/gen-nsis-script.ts && ts-node ts/scripts/gen-locales-config.ts && run-p get-strings:locales get-strings:countries mark-unusued-strings-deleted",
|
||||
"get-strings:locales": "ts-node ./ts/scripts/build-localized-display-names.ts locales ts/scripts/locale-data/locale-display-names.csv build/locale-display-names.json",
|
||||
"get-strings:countries": "ts-node ./ts/scripts/build-localized-display-names.ts countries ts/scripts/locale-data/country-display-names.csv build/country-display-names.json",
|
||||
"push-strings": "node ts/scripts/remove-strings.js && node ts/scripts/push-strings.js",
|
||||
"mark-unusued-strings-deleted": "ts-node ./ts/scripts/mark-unused-strings-deleted.ts",
|
||||
"get-expire-time": "node ts/scripts/get-expire-time.js",
|
||||
"copy-components": "node ts/scripts/copy.js",
|
||||
"sass": "sass stylesheets/manifest.scss:stylesheets/manifest.css stylesheets/manifest_bridge.scss:stylesheets/manifest_bridge.css",
|
||||
|
|
75
ts/scripts/mark-unused-strings-deleted.ts
Normal file
75
ts/scripts/mark-unused-strings-deleted.ts
Normal file
|
@ -0,0 +1,75 @@
|
|||
// Copyright 2024 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import { spawnSync } from 'node:child_process';
|
||||
import path from 'node:path';
|
||||
import { readFileSync, writeFileSync } from 'node:fs';
|
||||
import { DELETED_REGEXP } from './constants';
|
||||
|
||||
const rootDir = path.resolve(__dirname, '..', '..');
|
||||
const messagesPath = path.join(rootDir, '_locales/en/messages.json');
|
||||
|
||||
function getIcuLikeStrings(): Set<string> {
|
||||
const { status, stdout } = spawnSync(
|
||||
'grep',
|
||||
[
|
||||
// Match 'icu:Example__Element--StateAnd123'
|
||||
'--extended-regexp',
|
||||
'icu:[a-zA-Z0-9_.-]+',
|
||||
// Each line should just be the ICU message name without any noise
|
||||
'--no-filename',
|
||||
'--only-matching',
|
||||
// Search in these folders
|
||||
'--recursive',
|
||||
'ts/',
|
||||
'app/',
|
||||
],
|
||||
{
|
||||
cwd: rootDir,
|
||||
stdio: ['ignore', 'pipe', 'inherit'],
|
||||
encoding: 'utf-8',
|
||||
}
|
||||
);
|
||||
if (status !== 0) {
|
||||
throw new Error(`grep failed with status ${status}`);
|
||||
}
|
||||
return new Set(stdout.trim().split('\n'));
|
||||
}
|
||||
|
||||
function getDateStr(date: Date) {
|
||||
const year = String(date.getFullYear());
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
return `${year}/${month}/${day}`;
|
||||
}
|
||||
|
||||
const dateStr = getDateStr(new Date());
|
||||
const lines = getIcuLikeStrings();
|
||||
const messages = JSON.parse(readFileSync(messagesPath, 'utf-8'));
|
||||
let deletedCount = 0;
|
||||
for (const key of Object.keys(messages)) {
|
||||
const message = messages[key];
|
||||
if (key === 'smartling') {
|
||||
continue;
|
||||
}
|
||||
if (message.ignoreUnused) {
|
||||
continue;
|
||||
}
|
||||
if (DELETED_REGEXP.test(message.description)) {
|
||||
continue;
|
||||
}
|
||||
if (!lines.has(key)) {
|
||||
deletedCount += 1;
|
||||
console.log(`Marking ${key} as deleted`);
|
||||
if (message.description) {
|
||||
message.description = `(Deleted ${dateStr}) ${message.description}`;
|
||||
} else {
|
||||
message.description = `(Deleted ${dateStr})`;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (deletedCount === 0) {
|
||||
console.log('No strings to delete');
|
||||
} else {
|
||||
writeFileSync(messagesPath, `${JSON.stringify(messages, null, 2)}\n`);
|
||||
console.log(`Marked ${deletedCount} strings as deleted`);
|
||||
}
|
|
@ -19,6 +19,7 @@ type SmartlingConfigType = {
|
|||
export type LocaleMessageType = {
|
||||
messageformat?: string;
|
||||
description?: string;
|
||||
ignoreUnused?: boolean;
|
||||
};
|
||||
|
||||
export type LocaleMessagesType = {
|
||||
|
|
Loading…
Reference in a new issue