kishikawakatsumi/WebTranslator

Apple official documents not being translated

Closed this issue · 3 comments

I can't translate Apple Developer documents.
Neither pop-ups nor the shortcut key (⌘+⇧+y) respond.

I feel like this issue could occur elsewhere as well,
but at least for now, it's not happening with anything other than Developer documents.

Version

Web Translator : Version 0.1.32
Safari : Version 17.2.1

Apple Developer Document StackOverflow
日本語

Appleの公式ドキュメントだけ翻訳ができません。
ポップアップも、ショートカットキー(⌘+⇧+Y)でも反応しません。

他の場所でも同様の問題は発生しそうな気はしますが、
少なくとも、今のところはAppleの公式ドキュメント以外は発生していません。

バージョン

WebTranslator:Version 0.1.32
Safari Version 17.2.1

Thanks for reporting.

This is due to the Content Security Policy response header on Apple's website blocking the CSS in the extension. In fact, the translation functionality is working but is not being displayed as intended. If you scroll to the bottom of the screen after running the translation, you will find elements with no popover style applied.

Screenshot 2024-03-08 at 20 44 47

This problem cannot be easily fixed as it requires replacing all CSS application with JavaScript.

Alternatively, if you use the full-text translation feature, it will work correctly since it does not use CSS.

@KaitoMuraoka Fixed in version 0.1.33 (323). Please install and check it from the TestFlight link below.

https://testflight.apple.com/join/QmZCoDZb

@kishikawakatsumi

Thank you!
I'm really happy that you addressed this issue.

スクリーンショット 2024-03-31 22 12 40

It is currently working without any problems.
I'm growing even fonder of this web extension.
If anything comes up, I will provide feedback via TestFlight.

Feel free to close this Issue.