Skip to content

Pull request for issue #55#56

Merged
ochowei merged 2 commits into
mainfrom
feature/options-page
Aug 27, 2025
Merged

Pull request for issue #55#56
ochowei merged 2 commits into
mainfrom
feature/options-page

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

Fixes #55

This commit introduces a new options page that allows users to manually select the extension's interface language.

Key changes:
- Created `options.html` and `options.js` to provide a language selection dropdown (Auto, English, Traditional Chinese).
- Updated `manifest.json` to register the options page.
- Modified `webpack.config.js` to include the new options files in the build.
- Refactored `content-script.js` to fetch the user's language preference from `chrome.storage.sync` and use it to identify the correct 'Copy link' button text on Facebook.

This resolves the issue where the extension would fail if the user's Facebook language did not match their browser's language setting.
@ochowei ochowei marked this pull request as ready for review August 27, 2025 08:07
@ochowei ochowei added the jules label Aug 27, 2025
@ochowei

ochowei commented Aug 27, 2025

Copy link
Copy Markdown
Owner

Traditional Chinese 後面加上 (繁體中文)

@ochowei

ochowei commented Aug 27, 2025

Copy link
Copy Markdown
Owner

Jules , Traditional Chinese 後面加上 (繁體中文)

This commit adds the Traditional Chinese translation `(繁體中文)` next to the "Traditional Chinese" option in the language selection dropdown on the options page. This improves clarity for users who prefer the Traditional Chinese interface.
@ochowei ochowei merged commit 6f468a0 into main Aug 27, 2025
3 checks passed
@ochowei ochowei deleted the feature/options-page branch August 27, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

功能新增:導入語言設定選項頁面 (Options Page)

1 participant