[PR #586] [MERGED] feat: |Worker| multi language add messages #643

Closed
opened 2026-02-26 21:32:11 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/586
Author: @dreamhunter2333
Created: 2/19/2025
Status: Merged
Merged: 2/19/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • 1637313 feat: |Worker| multi language add messages

📊 Changes

4 files changed (+12 additions, -1 deletions)

View changed files

📝 worker/src/i18n/en.ts (+1 -0)
📝 worker/src/i18n/type.ts (+1 -0)
📝 worker/src/i18n/zh.ts (+1 -0)
📝 worker/src/worker.ts (+9 -1)

📄 Description

PR Type

enhancement, bug fix


Description

  • Added multi-language support for "Invalid address credential" message.

  • Enhanced error handling in worker.ts with language-specific messages.

  • Updated English and Chinese translation files with new message.


Changes walkthrough 📝

Relevant files
Enhancement
en.ts
Add new message for invalid address credential                     

worker/src/i18n/en.ts

  • Added "Invalid address credential" message.
+1/-0     
type.ts
Update type definitions for new message                                   

worker/src/i18n/type.ts

  • Added type definition for "Invalid address credential" message.
+1/-0     
zh.ts
Add Chinese translation for invalid address credential     

worker/src/i18n/zh.ts

  • Added Chinese translation for "Invalid address credential" message.
+1/-0     
Bug fix
worker.ts
Enhance error handling in JWT authentication                         

worker/src/worker.ts

  • Enhanced error handling with language-specific messages.
  • Added try-catch block for JWT authentication.
  • +9/-1     

    Need help?
  • Type /help how to ... in the comments thread for any questions about PR-Agent usage.
  • Check out the documentation for more information.

  • 🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

    ## 📋 Pull Request Information **Original PR:** https://github.com/dreamhunter2333/cloudflare_temp_email/pull/586 **Author:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Created:** 2/19/2025 **Status:** ✅ Merged **Merged:** 2/19/2025 **Merged by:** [@dreamhunter2333](https://github.com/dreamhunter2333) **Base:** `main` ← **Head:** `feature/dev` --- ### 📝 Commits (1) - [`1637313`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/16373136ffeec87ac7d88909d73cc583187f029a) feat: |Worker| multi language add messages ### 📊 Changes **4 files changed** (+12 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `worker/src/i18n/en.ts` (+1 -0) 📝 `worker/src/i18n/type.ts` (+1 -0) 📝 `worker/src/i18n/zh.ts` (+1 -0) 📝 `worker/src/worker.ts` (+9 -1) </details> ### 📄 Description ### **PR Type** enhancement, bug fix ___ ### **Description** - Added multi-language support for "Invalid address credential" message. - Enhanced error handling in `worker.ts` with language-specific messages. - Updated English and Chinese translation files with new message. ___ ### **Changes walkthrough** 📝 <table><thead><tr><th></th><th align="left">Relevant files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table> <tr> <td> <details> <summary><strong>en.ts</strong><dd><code>Add new message for invalid address credential</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/i18n/en.ts - Added "Invalid address credential" message. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/586/files#diff-866bab2459173d441c05aaffe80d1c0d5aaef950056259c00364174c71a5b20c">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>type.ts</strong><dd><code>Update type definitions for new message</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/i18n/type.ts - Added type definition for "Invalid address credential" message. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/586/files#diff-93a787364db63c92c7cff26f2a070af388094baa0b813de844843d5978808945">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>zh.ts</strong><dd><code>Add Chinese translation for invalid address credential</code>&nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/i18n/zh.ts - Added Chinese translation for "Invalid address credential" message. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/586/files#diff-afab3b78ff6b384c74a17417198e84933a9dfb3cd845fab91db1000084e192e1">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Bug fix</strong></td><td><table> <tr> <td> <details> <summary><strong>worker.ts</strong><dd><code>Enhance error handling in JWT authentication</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/worker.ts <li>Enhanced error handling with language-specific messages.<br> <li> Added try-catch block for JWT authentication. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/586/files#diff-c007030a206d7e4e2a4879ba673551e7633ad914b67cfac204096edced3f80a2">+9/-1</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr></tr></tbody></table> ___ > <details> <summary> Need help?</summary><li>Type <code>/help how to ...</code> in the comments thread for any questions about PR-Agent usage.</li><li>Check out the <a href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a> for more information.</li></details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
    kerem 2026-02-26 21:32:11 +03:00
    Sign in to join this conversation.
    No milestone
    No project
    No assignees
    1 participant
    Notifications
    Due date
    The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

    No due date set.

    Dependencies

    No dependencies set.

    Reference
    starred/cloudflare_temp_email#643
    No description provided.