Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Home page translation #58

6 changes: 2 additions & 4 deletions src/components/CodeEditor/CodeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,10 @@ class CodeEditor extends Component {
if (showBabelErrorMessage) {
errorMessage = (
<span>
Babel could not be loaded.
Babel کو لوڈ نہیں کیا جا سکا.
<br />
<br />
This can be caused by an ad blocker. If you're using one, consider
adding reactjs.org to the whitelist so the live code examples will
work.
یہ اشتہاری بلاکر کی وجہ سے ہوسکتا ہے۔ اگر آپ ایک استعمال کر رہے ہیں تو ، وائٹ لسٹ میں reactjs.org شامل کرنے پر غور کریں تاکہ براہ راست کوڈ کی مثالیں کام کریں.
</span>
);
} else if (error != null) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/CodeExample/CodeExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class CodeExample extends Component<Props> {
{loaded ? (
<CodeEditor code={code} containerNodeID={containerNodeID} />
) : (
<h4>Loading code example...</h4>
<h4>لوڈنگ کوڈ کی مثال...</h4>
)}
</div>
);
Expand Down
5 changes: 2 additions & 3 deletions src/components/ErrorDecoder/ErrorDecoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,15 @@ function ErrorResult(props: {|code: ?string, msg: string|}) {
if (!code) {
return (
<p>
When you encounter an error, you'll receive a link to this page for that
specific error and we'll show you the full error text.
جب آپ کو کسی غلطی کا سامنا کرنا پڑتا ہے تو آپ کو اس مخصوص غلطی کے لیے اس صفحے کا ایک لنک ملے گا اور ہم آپ کو غلطی کا مکمل متن دکھائیں گے۔
</p>
);
}

return (
<div>
<p>
<b>The full text of the error you just encountered is:</b>
<b>آپ نے جس غلطی کا سامنا کیا اس کا مکمل متن یہ ہے:</b>
</p>
<code>
<b>{urlify(errorMsg)}</b>
Expand Down
2 changes: 1 addition & 1 deletion src/components/LayoutFooter/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
<MetaTitle onDark={true}>{navFooter.community.title}</MetaTitle>
<ExternalFooterLink
href={`https://github.com/facebook/react/blob/main/CODE_OF_CONDUCT.md`}>
Code of Conduct
ضابطہ اخلاق
</ExternalFooterLink>
{sectionListCommunity.map(section => (
<FooterLink
Expand Down
2 changes: 1 addition & 1 deletion src/components/LayoutHeader/DocSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class DocSearch extends Component<{}, State> {
}}
id="algolia-doc-search"
type="search"
placeholder="Search"
placeholder="تلاش"
aria-label="Search docs"
/>
</form>
Expand Down
2 changes: 1 addition & 1 deletion src/components/LayoutHeader/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ const Header = ({location}: {location: Location}) => (
display: 'none',
},
}}>
Languages
زبانیں
</span>
</Link>
<Link
Expand Down
2 changes: 1 addition & 1 deletion src/components/LayoutHeader/SearchSvg.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const SearchSvg = () => (
height="16"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16">
<title>Search</title>
<title>تلاش</title>
<path
d={`
M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,
Expand Down
2 changes: 1 addition & 1 deletion src/components/MarkdownPage/MarkdownPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const MarkdownPage = ({
<a
css={sharedStyles.articleLayout.editLink}
href={`https://github.com/reactjs/reactjs.org/tree/main/${markdownRemark.fields.path}`}>
Edit this page
اس صفحے میں ترمیم کریں.
</a>
</div>
)}
Expand Down
12 changes: 6 additions & 6 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Home extends Component {
return (
<Layout location={location}>
<TitleAndMetaTags
title="React &ndash; A JavaScript library for building user interfaces"
title="React &ndash; یے JavaScript کی لا ئبریری ھے جو یوزر انٹرفیسس بنانے میں کا م آ تی ھے"
canonicalUrl={createCanonicalUrl('/')}
/>
<div
Expand Down Expand Up @@ -141,7 +141,7 @@ class Home extends Component {
fontSize: 30,
},
}}>
A JavaScript library for building user interfaces
یے JavaScript کی لا ئبریری ھے جو یوزر انٹرفیسس بنانے میں کا م آ تی ھے
</p>
<Flex
valign="center"
Expand All @@ -159,12 +159,12 @@ class Home extends Component {
<ButtonLink
to="/docs/getting-started.html"
type="primary">
Get Started
شروع کریں
</ButtonLink>
</CtaItem>
<CtaItem>
<ButtonLink to="/tutorial/tutorial.html" type="secondary">
Take the Tutorial
سبق حاصل کریں
</ButtonLink>
</CtaItem>
</Flex>
Expand Down Expand Up @@ -302,12 +302,12 @@ class Home extends Component {
}}>
<CtaItem>
<ButtonLink to="/docs/getting-started.html" type="primary">
Get Started
شروع کریں
</ButtonLink>
</CtaItem>
<CtaItem>
<ButtonLink to="/tutorial/tutorial.html" type="secondary">
Take the Tutorial
سبق حاصل کریں
</ButtonLink>
</CtaItem>
</Flex>
Expand Down