Commit Graph
37 Commits
Author SHA1 Message Date
dependabot[bot] c2207ad394 Bump hono in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [hono](https://github.com/honojs/hono).


Updates `hono` from 4.8.5 to 4.9.6
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](https://github.com/honojs/hono/compare/v4.8.5...v4.9.6)

---
updated-dependencies:
- dependency-name: hono
  dependency-version: 4.9.6
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 15:39:50 +00:00
xixu-me 4c23cce5f8 Fix formatting in FUNDING.yml 2025-08-24 17:40:35 +08:00
xixu-me e002ba156f Update architecture diagrams and example headings in README
Enhanced the architecture diagrams in both English and Chinese README files for clarity, adding more detailed components and improved flow. Updated example section headings for translation usage in JavaScript and Python to be more descriptive and consistent.
2025-08-09 18:52:46 +08:00
xixu-me da02349581 Update README to add Google Translate support
Expanded documentation in both English and Chinese to reflect new support for Google Translate alongside DeepL. Updated endpoint descriptions, feature lists, and architecture diagrams to show multi-provider support and clarified that the service is a free alternative to traditional translation APIs.
2025-08-09 18:47:09 +08:00
xixu-me 1076a5817f Remove Microsoft Translator integration and update docs
Eliminated Microsoft Translator support from the codebase, including its service implementation, API endpoint, and related tests. Updated both English and Chinese README files to reflect the removal and to clarify usage of DeepL and Google endpoints, providing improved examples and API documentation.
2025-08-09 18:41:49 +08:00
xixu-me e30b019cd2 Refactor Microsoft Translator integration and tests
Refactored the Microsoft Translator service to use a parameter object for translation requests, improved language code normalization, and enhanced error handling. Updated integration and unit tests to match the new API and moved Microsoft Translator unit tests to a new location under tests/lib/services. Removed the old test file and added more comprehensive test coverage for translation scenarios and error cases.
2025-08-09 18:18:36 +08:00
xixu-me 6927a22b13 Refactor Microsoft translation function arguments
Changed the call to translateWithMicrosoft to pass text, source_lang, and target_lang as separate arguments instead of a single params object. Updated the function implementation to match the new signature and inlined the request body construction.
2025-08-09 17:29:33 +08:00
xixu-me bc8cc07e13 Refactor Microsoft Translator service and add tests
Refactored the Microsoft Translator integration to improve error handling, token acquisition, and API request structure. Added comprehensive unit tests for translation and service availability, covering success, error, and edge cases.
2025-08-09 17:17:43 +08:00
xixu-me ee3ae8d52c Add Microsoft Translator integration and endpoint
Introduces a new Microsoft Translator service with a compatible API, adds the /microsoft POST endpoint, and updates the translation handler to support Microsoft as a provider. Also includes minor cleanup in testHelpers.
2025-08-09 16:18:03 +08:00
xixu-me 0b8d562117 Make config parameter optional in Google Translate service
Updated the translateWithGoogle function to accept an optional config parameter and handle missing clientIP values gracefully. This improves flexibility and prevents errors when config or its properties are undefined.
2025-08-09 14:11:04 +08:00
xixu-me c54500dc79 Add Google Translate provider and multi-provider support
Introduces a Google Translate integration with a new service module and endpoint (/google), refactors translation handling to support both DeepL and Google providers, and updates cache key generation to include the provider. Adds integration and unit tests for the new provider and updates API route definitions for clarity and extensibility.
2025-08-09 14:05:37 +08:00
xixu-me a2f73d7de5 Fix markdown link formatting in README
Removed unnecessary full-width parentheses in the PDFMathTranslate link to ensure consistent markdown formatting.
2025-07-29 18:26:19 +08:00
xixu-me b9b5d9ea6f Fix formatting in PDFMathTranslate section of README
Removed unnecessary full-width parentheses in the PDFMathTranslate section for consistency with the rest of the document.
2025-07-29 18:25:31 +08:00
xixu-me ae43151cc3 Add PDFMathTranslate to translation tools list
Added PDFMathTranslate (pdf2zh), an open-source PDF document translation tool, to both English and Chinese README files. Included relevant links to advanced options and service configuration documentation.
2025-07-29 18:24:42 +08:00
xixu-me 52e07fdcca Add Buy Me a Coffee sponsor to FUNDING.yml
Added Buy Me a Coffee username to the funding configuration to provide an additional sponsorship option.
2025-07-29 17:21:29 +08:00
xixu-me 40e23937c9 Refactor worker export configuration
Moved the worker export configuration to the end of the file and refactored the scheduled handler to be a synchronous function. This improves code organization and clarity.
2025-07-29 15:16:38 +08:00
xixu-me 6542951001 Update docs and remove obsolete test README
Improved instructions and added Zotero integration steps in both English and Chinese README files. Removed references to tests/README.md in setup scripts and deleted the obsolete tests/README.md file.
2025-07-29 12:28:46 +08:00
xixu-me 8776d917db Update docs and code comments to use 'app' terminology
Replaced occurrences of 'application' with 'app' in code comments and documentation for consistency and brevity. Updated both English and Chinese README files to add and clarify DeepLX App usage instructions, and adjusted section order for better clarity.
2025-07-28 22:05:14 +08:00
xixu-me e5f585c2c5 Update star history links to DeepLX in README files
Changed the star history chart links and image sources from xixu-me/Xget to xixu-me/DeepLX in both README.md and README.zh.md for accurate project reference.
2025-07-28 15:38:35 +08:00
xixu-me 2eb0f0d2ff Update star history chart to use Xget repository
Replaced the star history chart in both English and Chinese README files to reference the xixu-me/Xget repository instead of xixu-me/DeepLX. Also updated the chart to use a <picture> element for dark and light theme support.
2025-07-28 15:37:35 +08:00
xixu-me e51ae3c98f Update security contact email address
Changed the security contact email from contact@xi-xu.me to i@xi-xu.me in SECURITY.md for reporting vulnerabilities and urgent issues.
2025-07-28 14:37:58 +08:00
xixu-me 2f99a2d555 Update README wording for 'star' suggestion
Changed 'Star' to 'star' in both English and Chinese README files for consistency and improved readability.
2025-07-27 18:34:10 +08:00
xixu-me be3f7149a7 Remove unused preview_url from wrangler config
Deleted the 'preview_url' property from wrangler.jsonc as it is no longer needed.
2025-07-27 16:02:14 +08:00
xixu-me 0d51bc60f5 Add preview_url flag to wrangler config
Introduces the 'preview_url' property set to false in wrangler.jsonc to control preview URL behavior.
2025-07-27 15:58:15 +08:00
xixu-me 8d875df84d Remove HTML content preservation utilities
Deleted htmlUtils module and its related tests. Removed all references to HTML preservation functions from index.ts and query.ts, simplifying the query logic and eliminating HTML-specific handling.
2025-07-27 15:07:02 +08:00
xixu-me c624aa9df7 Improve placeholder handling in HTML utils
Changed placeholder format to a unique string less likely to be altered by translation services and added zero-padding for consistency. Updated restoration logic to handle case-insensitive matching of placeholders. Added tests to verify correct restoration when placeholders are converted to lowercase.
2025-07-27 14:55:50 +08:00
xixu-me 12ec7bef22 Highlight DeepLX as a free alternative to DeepL API
Added a new section in both English and Chinese README files to emphasize that DeepLX is completely free to use, with no API keys, subscription fees, or usage limits, unlike the paid DeepL API.
2025-07-27 14:31:43 +08:00
xixu-me 15746b66da Update README.md 2025-07-27 12:17:57 +08:00
xixu-me 7f16237beb Update README.zh.md 2025-07-27 12:16:49 +08:00
xixu-me a563911403 Update CONTRIBUTING.md 2025-07-27 12:11:27 +08:00
xixu-me a2817c3b68 Update README.md 2025-07-27 12:10:52 +08:00
xixu-me 491edc6bd3 Update README.zh.md 2025-07-27 12:10:25 +08:00
xixu-me 6059236173 Update README.zh.md 2025-07-27 02:42:34 +08:00
xixu-me b23a056bd5 Update README.md 2025-07-27 02:41:20 +08:00
xixu-me eac06f3c01 Update DeepL documentation link in README
Replaces the outdated reference to 'Supported Languages' with 'Languages supported' in the DeepL documentation link for clarity and accuracy.
2025-07-27 02:21:54 +08:00
xixu-me 2f4c7d98d1 Add language switch links to README files
Added cross-links between English and Chinese README files for easier language switching. Updated CODE_OF_CONDUCT.md to use angle brackets for email and URLs for improved formatting.
2025-07-27 02:20:30 +08:00
xixu-me 8afa94767e Initial repository setup and core files added
Add configuration, documentation, code of conduct, contributing guide, license, and README files. Set up .gitignore, coverage config, GitHub issue templates, pull request template, and initial source code, scripts, and tests for DeepLX optimized for Cloudflare Workers.
2025-07-27 02:09:25 +08:00