Skip to content

Commit 2ee9c5a

Browse files
committed
translate components
1 parent 0eda16a commit 2ee9c5a

File tree

5 files changed

+15
-16
lines changed

5 files changed

+15
-16
lines changed

src/components/CodeEditor/CodeEditor.js

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,11 @@ class CodeEditor extends Component {
6262
if (showBabelErrorMessage) {
6363
errorMessage = (
6464
<span>
65-
Babel could not be loaded.
65+
لم يتم تحميل Babel
6666
<br />
6767
<br />
68-
This can be caused by an ad blocker. If you're using one, consider
69-
adding reactjs.org to the whitelist so the live code examples will
70-
work.
68+
يمكن أن يحدث هذا بسبب تطبيقات منع الإعلانات. إن كنت تستعمل أحدها، أضف reactjs.org
69+
إلى قائمة المواقع المسموح لها حتى تتمكن من تشغيل أمثلة الشيفرة البرمجية.
7170
</span>
7271
);
7372
} else if (error != null) {
@@ -77,7 +76,7 @@ class CodeEditor extends Component {
7776
return (
7877
<LiveProvider code={showJSX ? code : compiledES6} mountStylesheet={false}>
7978
<div
80-
dir="ltr"
79+
dir="rtl"
8180
css={{
8281
[media.greaterThan('medium')]: {
8382
display: 'flex',
@@ -106,11 +105,11 @@ class CodeEditor extends Component {
106105
color: colors.white,
107106
}}>
108107
<MetaTitle onDark={true}>
109-
Live JSX Editor
108+
محرر JSX المباشر
110109
<label
111110
css={{
112111
fontSize: 14,
113-
float: 'right',
112+
float: 'left',
114113
cursor: 'pointer',
115114
}}>
116115
<input
@@ -120,7 +119,7 @@ class CodeEditor extends Component {
120119
}
121120
type="checkbox"
122121
/>{' '}
123-
JSX?
122+
JSX؟
124123
</label>
125124
</MetaTitle>
126125
</div>
@@ -176,7 +175,7 @@ class CodeEditor extends Component {
176175
cssProps={{
177176
color: colors.white,
178177
}}>
179-
Error
178+
خطأ
180179
</MetaTitle>
181180
</div>
182181
<pre
@@ -207,7 +206,7 @@ class CodeEditor extends Component {
207206
padding: '0 10px',
208207
backgroundColor: colors.divider,
209208
}}>
210-
<MetaTitle>Result</MetaTitle>
209+
<MetaTitle>النتيجة</MetaTitle>
211210
</div>
212211
<div
213212
id={containerNodeID}

src/components/CodeExample/CodeExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class CodeExample extends Component {
6161
{loaded ? (
6262
<CodeEditor code={code} containerNodeID={containerNodeID} />
6363
) : (
64-
<h4>Loading code example...</h4>
64+
<h4>جاري تحميل مثال الشيفرة البرمجية...</h4>
6565
)}
6666
</div>
6767
);

src/components/ErrorDecoder/ErrorDecoder.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,16 @@ function ErrorResult(props: {|code: ?string, msg: string|}) {
6969
if (!code) {
7070
return (
7171
<p>
72-
When you encounter an error, you'll receive a link to this page for that
73-
specific error and we'll show you the full error text.
72+
عندما تُواجه خطأ ما، سيتمّ تحويلك إلى هذه الصفحة الخاصة بذلك الخطأ بالتحديد
73+
وسنعرض لك نص رسالة الخطأ بالكامل.
7474
</p>
7575
);
7676
}
7777

7878
return (
7979
<div>
8080
<p>
81-
<b>The full text of the error you just encountered is:</b>
81+
<b>النص الكامل للخطأ الذي واجهته للتو هو:</b>
8282
</p>
8383
<code>
8484
<b>{urlify(errorMsg)}</b>

src/components/LayoutHeader/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const Header = ({location}: {location: Location}) => (
179179
},
180180
}}
181181
to="/versions">
182-
اصدار {version}
182+
إصدار {version}
183183
</Link>
184184
<Link
185185
css={{

src/components/LayoutHeader/SearchSvg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const SearchSvg = () => (
1212
height="16"
1313
xmlns="http://www.w3.org/2000/svg"
1414
viewBox="0 0 16 16">
15-
<title>Search</title>
15+
<title>بحث</title>
1616
<path
1717
d={`
1818
M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,

0 commit comments

Comments
 (0)