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 2a9e448 commit b705410
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Translate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const XTranslate = () => {
script.defer = true;
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.onload = onload;
script.onerror = console.warn;
Expand Down

0 comments on commit b705410

Please sign in to comment.