You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
text = 'Here is an example of an HTML page with a dark theme:\n```\n<!DOCTYPE html>\n<html>\n<head>\n\t<title>Dark Theme HTML Page</title>\n\t<style>\n\t\t/* Global Styles */\n\t\t* {\n\t\t\tbox-sizing: border-box;\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t}\n\t\t\n\t\t/* Dark Theme Styles */\n\t\tbody {\n\t\t\tbackground-color: #2f2f2f; /* Dark gray background */\n\t\t\tcolor: #fff;'
translator = Translator()
translation = translator.translate(text, src='en', dest='zh-CN')
print([translation.text])
Googletrans version:
I'm submitting a ...
Given the following code:
Current behavior:
这是具有深色主题的HTML页面的示例:\n````````\n<!doctype html>\n<html>\n<头>\n<title>深色主题html页</title>\n<样式>\n/ *全球样式 */\n* {\n盒子大小:边框框;\n保证金:0;\n填充:0;\n}\n\n/ *黑暗主题样式 */\n身体 {\n背景色:#2F2F2F;/ *深灰色背景 */\n颜色:#fff;
Expected behavior (Google Trans Website):
下面是一个采用深色主题的 HTML 页面示例:\n```\n<!DOCTYPE html>\n<html>\n<head>\n\t<title>深色主题 HTML 页面</title>\n\t<style>\n\t\t/* 全局样式 */\n\t\t* {\n\t\t\tbox-sizing: border-box;\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t}\n\t\t\n\t\t\t/* 深色主题样式 */\n\t\tbody {\n\t\t\tbackground-color: #2f2f2f; /* 深灰色背景 */\n\t\t\tcolor: #fff;
The text was updated successfully, but these errors were encountered: