Skip to content

Commit b705410

Browse files
committed
[新增功能](develop): Google i18n 翻译组件
1 parent 2a9e448 commit b705410

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Translate/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const XTranslate = () => {
3838
script.defer = true;
3939
script.crossOrigin = 'anonymous';
4040
// https:/translate.google.com/translate_a/element.js?cb=loadGoogleTranslate
41+
// script.src = `//cdn.hocgin.top/icons/gtranslate.js?&cb=GoogleTranslateElementInit`;
4142
script.src = `//translate.google.com/translate_a/element.js?&cb=GoogleTranslateElementInit`;
4243
script.onload = onload;
4344
script.onerror = console.warn;

0 commit comments

Comments
 (0)