Adopt MarkdownToInlinesConverter for instruction text formatting

Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-24 09:55:08 +00:00
parent c6871af438
commit 5bbd3fa65e
9 changed files with 321 additions and 226 deletions

View File

@@ -15,34 +15,34 @@ public partial class LocalizationManager
// Token instructions (personal account)
[nameof(TokenPersonalHeader)] = "To get the token for your personal account:",
[nameof(TokenPersonalTosWarning)] =
"* Automating user accounts is technically against TOS —",
[nameof(TokenPersonalTosRisk)] = "use at your own risk",
"* Automating user accounts is technically against TOS — **use at your own risk**!",
[nameof(TokenPersonalStep1Before)] = "1. Open Discord in your",
[nameof(TokenPersonalStep1After)] = "and login",
[nameof(TokenPersonalStep2)] = "2. Open any server or direct message channel",
[nameof(TokenPersonalStep3)] = "3. Press Ctrl+Shift+I to show developer tools",
[nameof(TokenPersonalStep4)] = "4. Navigate to the Network tab",
[nameof(TokenPersonalStep5)] = "5. Press Ctrl+R to reload",
[nameof(TokenPersonalStep6)] =
"6. Switch between random channels to trigger network requests",
[nameof(TokenPersonalStep7)] = "7. Search for a request that starts with messages",
[nameof(TokenPersonalStep8)] = "8. Select the Headers tab on the right",
[nameof(TokenPersonalStep9)] = "9. Scroll down to the Request Headers section",
[nameof(TokenPersonalStep10)] = "10. Copy the value of the authorization header",
[nameof(TokenPersonalInstructions)] = """
2. Open any server or direct message channel
3. Press **Ctrl+Shift+I** to show developer tools
4. Navigate to the **Network** tab
5. Press **Ctrl+R** to reload
6. Switch between random channels to trigger network requests
7. Search for a request that starts with **messages**
8. Select the **Headers** tab on the right
9. Scroll down to the **Request Headers** section
10. Copy the value of the **authorization** header
""",
[nameof(TokenWebBrowserLinkText)] = "web browser",
// Token instructions (bot)
[nameof(TokenBotHeader)] = "To get the token for your bot:",
[nameof(TokenBotIntro)] =
"The token is generated during bot creation. If you lost it, generate a new one:",
[nameof(TokenBotStep1)] = "1. Open Discord",
[nameof(TokenBotStep2)] = "2. Open your application's settings",
[nameof(TokenBotStep3)] = "3. Navigate to the Bot section on the left",
[nameof(TokenBotStep4)] = "4. Under Token click Reset Token",
[nameof(TokenBotStep5)] = "5. Click Yes, do it! and authenticate to confirm",
[nameof(TokenBotStep6)] =
"* Integrations using the previous token will stop working until updated",
[nameof(TokenBotStep7Before)] = "* Your bot needs to have the",
[nameof(TokenBotStep7After)] = "enabled to read messages",
[nameof(TokenBotInstructions)] = """
2. Open your application's settings
3. Navigate to the **Bot** section on the left
4. Under **Token** click **Reset Token**
5. Click **Yes, do it!** and authenticate to confirm
* Integrations using the previous token will stop working until updated
* Your bot needs to have the **Message Content Intent** enabled to read messages
""",
[nameof(TokenDeveloperPortalLinkText)] = "developer portal",
[nameof(TokenDocumentationLinkText)] = "documentation",
[nameof(TokenHelpText)] = "If you have questions or issues, please refer to the",