Skip to content

Commit

Permalink
Merge pull request #950 from maxtulupov/translate-ancillary-components
Browse files Browse the repository at this point in the history
Translate of ancillary components
  • Loading branch information
titovmx authored Jun 17, 2024
2 parents 5defa6f + 68ab788 commit 265129f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/DocsFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function FooterLink({
/>
<div className="flex flex-col overflow-hidden">
<span className="text-sm font-bold tracking-wide no-underline uppercase text-secondary dark:text-secondary-dark group-focus:text-link dark:group-focus:text-link-dark group-focus:text-opacity-100">
{type}
{type === 'Previous' ? 'Предыдущая глава' : 'Следующая глава'}
</span>
<span className="text-lg break-words group-hover:underline">
{title}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function SendFeedback({onSubmit}: {onSubmit: () => void}) {
{exit: isSubmitted}
)}>
<p className="w-full text-lg font-bold text-primary dark:text-primary-dark me-4">
{isSubmitted ? 'Thank you for your feedback!' : 'Is this page useful?'}
{isSubmitted ? 'Спасибо за ваш отзыв!' : 'Эта страница была полезна?'}
</p>
{!isSubmitted && (
<button
Expand Down
2 changes: 1 addition & 1 deletion src/components/Layout/Toc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function Toc({headings}: {headings: Toc}) {
<nav role="navigation" className="pt-20 sticky top-0 end-0">
{headings.length > 0 && (
<h2 className="mb-3 lg:mb-3 uppercase tracking-wide font-bold text-sm text-secondary dark:text-secondary-dark px-4 w-full">
On this page
На этой странице
</h2>
)}
<div
Expand Down
2 changes: 1 addition & 1 deletion src/components/MDX/MDXComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ function YouWillLearn({
children: any;
isChapter?: boolean;
}) {
let title = isChapter ? 'In this chapter' : 'You will learn';
let title = isChapter ? 'В этой главе' : 'Вы узнаете';
return <SimpleCallout title={title}>{children}</SimpleCallout>;
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils/prepareMDX.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function getTableOfContents(children, depth) {
if (anchors.length > 0) {
anchors.unshift({
url: '#',
text: 'Overview',
text: 'Обзор',
depth: 2,
});
}
Expand Down

0 comments on commit 265129f

Please sign in to comment.