[PR #585] [MERGED] feat: |Worker| add var DEFAULT_LANG, zh/en #641

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/585
Author: @dreamhunter2333
Created: 2/19/2025
Status: Merged
Merged: 2/19/2025
Merged by: @dreamhunter2333

Base: mainHead: feature/dev


📝 Commits (1)

  • e4fa77d feat: |Worker| add var DEFAULT_LANG, zh/en

📊 Changes

4 files changed (+4 additions, -0 deletions)

View changed files

📝 vitepress-docs/docs/en/cli.md (+1 -0)
📝 vitepress-docs/docs/zh/guide/worker-vars.md (+1 -0)
📝 worker/src/admin_api/worker_config.ts (+1 -0)
📝 worker/wrangler.toml.template (+1 -0)

📄 Description

PR Type

enhancement, documentation


Description

  • Add DEFAULT_LANG variable to worker configuration.

  • Update documentation to include DEFAULT_LANG usage.

  • Set default language example in configuration templates.


Changes walkthrough 📝

Relevant files
Enhancement
worker_config.ts
Add `DEFAULT_LANG` to worker configuration                             

worker/src/admin_api/worker_config.ts

  • Add DEFAULT_LANG to the worker configuration response.
+1/-0     
wrangler.toml.template
Update wrangler.toml template with `DEFAULT_LANG` example

worker/wrangler.toml.template

  • Add DEFAULT_LANG example in the wrangler.toml template.
+1/-0     
Documentation
cli.md
Update CLI documentation with `DEFAULT_LANG` example         

vitepress-docs/docs/en/cli.md

  • Add DEFAULT_LANG example in the CLI documentation.
+1/-0     
worker-vars.md
Add `DEFAULT_LANG` documentation in Chinese guide               

vitepress-docs/docs/zh/guide/worker-vars.md

  • Document DEFAULT_LANG variable in the Chinese guide.
+1/-0     

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/585 **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) - [`e4fa77d`](https://github.com/dreamhunter2333/cloudflare_temp_email/commit/e4fa77d9796333a4c8f596c91cd0961ccfeae93b) feat: |Worker| add var DEFAULT_LANG, zh/en ### 📊 Changes **4 files changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `vitepress-docs/docs/en/cli.md` (+1 -0) 📝 `vitepress-docs/docs/zh/guide/worker-vars.md` (+1 -0) 📝 `worker/src/admin_api/worker_config.ts` (+1 -0) 📝 `worker/wrangler.toml.template` (+1 -0) </details> ### 📄 Description ### **PR Type** enhancement, documentation ___ ### **Description** - Add `DEFAULT_LANG` variable to worker configuration. - Update documentation to include `DEFAULT_LANG` usage. - Set default language example in configuration templates. ___ ### **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>worker_config.ts</strong><dd><code>Add `DEFAULT_LANG` to worker configuration</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> worker/src/admin_api/worker_config.ts - Add `DEFAULT_LANG` to the worker configuration response. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/585/files#diff-49df0a54d190cb8ea3788432fae88000683da8e61a5c4d0d184c8b7f0015a0ae">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>wrangler.toml.template</strong><dd><code>Update wrangler.toml template with `DEFAULT_LANG` example</code></dd></summary> <hr> worker/wrangler.toml.template - Add `DEFAULT_LANG` example in the wrangler.toml template. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/585/files#diff-743273da72481b71fbeb1dddfd294be9249554eef65691dfc9bcfa9f0fd971fb">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> </table></td></tr><tr><td><strong>Documentation</strong></td><td><table> <tr> <td> <details> <summary><strong>cli.md</strong><dd><code>Update CLI documentation with `DEFAULT_LANG` example</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> vitepress-docs/docs/en/cli.md - Add `DEFAULT_LANG` example in the CLI documentation. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/585/files#diff-3f8f72a691fa19c8581621e91cf67ad28855af7a57e58513f6563cf4c8886e5f">+1/-0</a>&nbsp; &nbsp; &nbsp; </td> </tr> <tr> <td> <details> <summary><strong>worker-vars.md</strong><dd><code>Add `DEFAULT_LANG` documentation in Chinese guide</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary> <hr> vitepress-docs/docs/zh/guide/worker-vars.md - Document `DEFAULT_LANG` variable in the Chinese guide. </details> </td> <td><a href="https://github.com/dreamhunter2333/cloudflare_temp_email/pull/585/files#diff-1bd83b534dfb9159de9157e0943a1f5191373ecdb5af08552c8033464596d223">+1/-0</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#641
    No description provided.