-
Notifications
You must be signed in to change notification settings - Fork 16
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
[R] Partial i18n refactor & notification visual effect improvements #25
Conversation
✅ Deploy Preview for oau-main-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
src/App.vue
Outdated
let lang = getLang(); | ||
if (lang === 'zh_hant') | ||
{ | ||
((document.querySelector('div#nav') as Element).firstElementChild.children.item(0) as Element).textContent = "首頁" as string | ||
((document.querySelector('div#nav') as Element).firstElementChild.children.item(1) as Element).textContent = "聯繫" as string | ||
} | ||
if (lang === 'en') | ||
{ | ||
((document.querySelector('div#nav') as Element).firstElementChild.children.item(0) as Element).textContent = "Home" as string | ||
((document.querySelector('div#nav') as Element).firstElementChild.children.item(1) as Element).textContent = "Contact" as string | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在 Vue 里面用 querySelector 手动设置内容不太好... 改了一下改成用一个变量定义多语言文字了
本地化了一些翻译细节,整体还不错。 (还没改完,好累呜呜 |
把原文的 (以及为什么是个了解更多页面(气鼓鼓 |
9b3b3e4
to
b4645be
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这回是真改过来了qwq( |
你们觉得咋样?能上线就先合了,剩下的慢慢改。 |
我觉得可以。 |
咱想不出需要添加/修改的新点子了qwq |
还是手译的(塑料英语)