Skip to content

Feature: Add support for t.ly URL shortener service#152

Open
loustack17 wants to merge 7 commits into
fwenzel:masterfrom
loustack17:develop-lou
Open

Feature: Add support for t.ly URL shortener service#152
loustack17 wants to merge 7 commits into
fwenzel:masterfrom
loustack17:develop-lou

Conversation

@loustack17

Copy link
Copy Markdown

Feature: Add t.ly URL Shortener Support

This Pull Request introduces the t.ly shortener service as an option for generating short URLs.

  • Service Implemented: t.ly
  • Reasoning: t.ly is a reliable, fast, and free shortener service that provides another good option for users of this extension.

Bug Fix / Maintenance

  • Fixed locales messages: Corrected some existing locale messages to improve accuracy.

Note for Maintainer (Code Formatting)

I use the Prettier code formatter locally, and I inadvertently formatted the code in some files (potentially due to running an auto-format on save).

I sincerely apologise for the unnecessary diff in the PR history. The core changes are strictly for the t.ly feature and the locale fixes.

If the formatting changes are not desired, please let me know, and I can try to revert them or squash the relevant commits before merging.

@fwenzel fwenzel left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the change - but two things:

  • I don't really want 4-space indentation as part of this change
  • and it makes the change much more significant than simply adding t.ly

If your PR had two separate commits in it, I would simply cherry-pick the code change for t.ly but it does not so I am not sure how to pull only those changes :(

@loustack17 loustack17 requested a review from fwenzel December 7, 2025 07:51
Copilot AI review requested due to automatic review settings December 7, 2025 08:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for the t.ly URL shortener service as a new option alongside existing services like bit.ly, cutt.ly, and kutt.it. Additionally, it includes locale message fixes for Chinese translations and formatting improvements via Prettier.

  • Implements t.ly shortener with API key authentication and optional custom domain support
  • Updates localization files (English, German, Simplified Chinese, Traditional Chinese) with t.ly-related messages
  • Fixes JSON formatting issues in locale files (whitespace alignment)

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/lib/shortener.js Adds t.ly service configuration with API integration following the pattern of existing authenticated services; includes Prettier formatting changes throughout
src/data/js/options.js Adds t.ly API key and domain options; includes t.ly in the service list for UI visibility
src/data/html/options.html Adds UI elements for t.ly configuration including API key input and custom domain field with appropriate help links
src/_locales/en/messages.json Adds English locale messages for t.ly service configuration; fixes JSON formatting
src/_locales/de/messages.json Adds German locale messages for t.ly service configuration; fixes JSON formatting
src/_locales/zh_CN/messages.json Adds Simplified Chinese locale messages for t.ly service and improves existing translations; fixes JSON formatting
src/_locales/zh_TW/messages.json Adds Traditional Chinese locale messages for t.ly service and improves existing translations; fixes JSON formatting
.gitignore Adds entries for personal development files (Copilot instructions, VS Code config, pnpm lock file)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/lib/shortener.js Outdated
Comment thread src/lib/shortener.js Outdated
loustack17 and others added 3 commits December 7, 2025 03:14
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@loustack17

Copy link
Copy Markdown
Author

I modified the entire format and added the prettier rule file to help standard the formatting.
If it has any issues, just tag me.

@fwenzel fwenzel closed this Apr 2, 2026
@fwenzel fwenzel reopened this Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants