Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否添加:调用google翻译的语种选择框? #1236

Open
JeanTse opened this issue Oct 12, 2023 · 0 comments
Open

能否添加:调用google翻译的语种选择框? #1236

JeanTse opened this issue Oct 12, 2023 · 0 comments
Labels
feature:extension Feature request that affects widgets, comment, share, search, and plugins.

Comments

@JeanTse
Copy link

JeanTse commented Oct 12, 2023

确保你在提交功能建议之前仔细阅读了Hexo文档Icarus用户指南,和GitHub issues来了解你的建议是否已经被他人提出过。

你的功能建议与某个使用问题相关么?请详述。

想加入google翻译的按钮, 就是可以直接选择将本页翻译成某语种的选择框,应该是调用google翻译API的。

描述你想要的解决方案

我在google翻译的设置中已经提交了申请调用,获得了代码,但是不知道该怎样加入themo之中使用

描述你考虑过的替代办法

同上,我获得的代码不知道怎么加入进去:

<script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element'); } </script> <script type="text/javascript" src="//[translate.google.com/translate_a/element.js?cb=googleTranslateElementInit](https://www.google.com/url?q=http://translate.google.com/translate_a/element.js?cb%3DgoogleTranslateElementInit&sa=D&source=editors&ust=1697101678692139&usg=AOvVaw3d5KPzkEq47Ww07GHB6Oyg)"></script>

额外上下文

@ppoffice ppoffice added the feature:extension Feature request that affects widgets, comment, share, search, and plugins. label Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:extension Feature request that affects widgets, comment, share, search, and plugins.
Projects
None yet
Development

No branches or pull requests

2 participants