Skip to content

Commit

Permalink
[新增功能](develop): Google i18n 翻译组件
Browse files Browse the repository at this point in the history
  • Loading branch information
hocgin committed Mar 4, 2024
1 parent b705410 commit c9b083b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const XTranslate = () => {
script.crossOrigin = 'anonymous';
// https:/translate.google.com/translate_a/element.js?cb=loadGoogleTranslate
// script.src = `//cdn.hocgin.top/icons/gtranslate.js?&cb=GoogleTranslateElementInit`;
script.src = `//translate.google.com/translate_a/element.js?&cb=GoogleTranslateElementInit`;
script.src = `//translate.google.com/translate_a/element.js?cb=GoogleTranslateElementInit`;
script.onload = onload;
script.onerror = console.warn;
document.body.appendChild(script);
Expand Down

0 comments on commit c9b083b

Please sign in to comment.