-
Notifications
You must be signed in to change notification settings - Fork 311
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
Translations: add issue report banner to translation pages #3486
Translations: add issue report banner to translation pages #3486
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Blargian is attempting to deploy a commit to the ClickHouse Team on Vercel. A member of the Team first needs to authorize it. |
src/theme/DocItem/Layout/index.js
Outdated
|
||
const locales = ['/ru/', '/jp/', '/zh/'] | ||
let isEnglish = true; | ||
console.log(location.pathname) |
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.
remove
export default function DocItemLayout({children}) { | ||
const docTOC = useDocTOC(); | ||
const {metadata} = useDoc(); | ||
const {editUrl} = metadata; | ||
|
||
const location = useLocation(); |
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.
this can all be done much simpler, use the getDocusarusContext and you can get the locale. Just check its not en
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.
Summary
Checklist