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

Home Page Translation #4

Merged
merged 10 commits into from Feb 23, 2019
8 changes: 4 additions & 4 deletions content/home/examples/a-component-using-external-plugins.js
Expand Up @@ -2,7 +2,7 @@ class MarkdownEditor extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
this.state = { value: 'Hello, **world**!' };
this.state = { value: 'হ্যালো, **ওয়ার্ল্ড**!' };
}

handleChange(e) {
Expand All @@ -17,16 +17,16 @@ class MarkdownEditor extends React.Component {
render() {
return (
<div className="MarkdownEditor">
<h3>Input</h3>
<h3>ইনপুট</h3>
<label htmlFor="markdown-content">
Enter some markdown
কিছু মার্কডাউন লিখুন
</label>
<textarea
id="markdown-content"
onChange={this.handleChange}
defaultValue={this.state.value}
/>
<h3>Output</h3>
<h3>আউটপুট</h3>
<div
className="content"
dangerouslySetInnerHTML={this.getRawMarkup()}
Expand Down
4 changes: 2 additions & 2 deletions content/home/examples/a-component-using-external-plugins.md
@@ -1,7 +1,7 @@
---
title: A Component Using External Plugins
title: এক্সটারনাল প্লাগইন ব্যবহার করা একটি কম্পোনেন্ট
order: 3
domid: markdown-example
---

React allows you to interface with other libraries and frameworks. This example uses **remarkable**, an external Markdown library, to convert the `<textarea>`'s value in real time.
React অন্যান্য লাইব্রেরী এবং ফ্রেমওয়ার্কের সাথে সহজেই যুক্ত হতে পারে। এই উদাহরণটি একটি এক্সটারনাল মার্কডাউন লাইব্রেরী **remarkable** ব্যাবহার করেছে, যেটি `<textarea>` এর ভ্যালু রিয়েল টাইমে পরিবর্তন করতে পারে।
4 changes: 2 additions & 2 deletions content/home/examples/a-simple-component.js
Expand Up @@ -2,13 +2,13 @@ class HelloMessage extends React.Component {
render() {
return (
<div>
Hello {this.props.name}
হ্যালো {this.props.name}
</div>
);
}
}

ReactDOM.render(
<HelloMessage name="Taylor" />,
<HelloMessage name="টেইলর" />,
document.getElementById('hello-example')
);
6 changes: 3 additions & 3 deletions content/home/examples/a-simple-component.md
@@ -1,9 +1,9 @@
---
title: A Simple Component
title: একটি সহজ কম্পোনেন্ট
order: 0
domid: hello-example
---

React components implement a `render()` method that takes input data and returns what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by `render()` via `this.props`.
React কম্পোনেন্টগুলি একটি `render()` মেথড ব্যবহার করে যা ইনপুট ডেটা নেয় এবং কী দেখাতে হবে তা রিটার্ন করে। এই উদাহরণটি JSX নামে একটি XML এর মত একটি সিনট্যাক্স ব্যবহার করে। কম্পোনেন্টটে যেই ইনপুট ডেটা দেওয়া হয়, সেগুলো `this.props` এর মাধ্যমরে `render()` মেথডের ভেতরে ব্যবহার করে যায়।

**JSX is optional and not required to use React.** Try the [Babel REPL](babel://es5-syntax-example) to see the raw JavaScript code produced by the JSX compilation step.
**JSX একটি অপশনাল সিনট্যাক্স এবং React এ ব্যবহার করা আবশ্যিক নয়।** JSX এর কম্পাইলেশন ধাপে, যেই রো জাভাস্ক্রিপ্ট তৈরি হয়, সেগুলো পর্যবেক্ষণ করতে [Babel REPL](babel://es5-syntax-example) ব্যবহার করতে পারেন।
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to type "রো জাভাস্ক্রিপ্ট", or just "জাভাস্ক্রিপ্ট"?

2 changes: 1 addition & 1 deletion content/home/examples/a-stateful-component.js
Expand Up @@ -21,7 +21,7 @@ class Timer extends React.Component {
render() {
return (
<div>
Seconds: {this.state.seconds}
সেকেন্ড: {this.state.seconds}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

সেকেন্ডস

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think সেকেন্ড also represents the plural. see google translator

</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions content/home/examples/a-stateful-component.md
@@ -1,7 +1,7 @@
---
title: A Stateful Component
title: একটি স্টেটফুল কম্পোনেন্ট
order: 1
domid: timer-example
---

In addition to taking input data (accessed via `this.props`), a component can maintain internal state data (accessed via `this.state`). When a component's state data changes, the rendered markup will be updated by re-invoking `render()`.
ইনপুট ডেটা গ্রহণ করার পাশাপাশি (`this.props` ব্যবহার করে) কম্পোনেন্ট অভ্যন্তরীণ স্টেট ডেটা বজায় রাখতে পারে (`this.state` ব্যবহার করে)। যখন একটি কম্পোনেন্ট এর স্টেট ডেটা পরিবর্তিত হয়, রেন্ডার করা মার্কআপ পুনরায় `render()` মেধডে পাঠিয়ে আপডেট করা হয়।
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe, in the last line, after render(), it should be "মেথডে"

6 changes: 3 additions & 3 deletions content/home/examples/an-application.js
Expand Up @@ -9,19 +9,19 @@ class TodoApp extends React.Component {
render() {
return (
<div>
<h3>TODO</h3>
<h3>TODO</h3>
<TodoList items={this.state.items} />
<form onSubmit={this.handleSubmit}>
<label htmlFor="new-todo">
What needs to be done?
কি করা প্রয়োজন?
</label>
<input
id="new-todo"
onChange={this.handleChange}
value={this.state.text}
/>
<button>
Add #{this.state.items.length + 1}
যোগ #{this.state.items.length + 1}
</button>
</form>
</div>
Expand Down
4 changes: 2 additions & 2 deletions content/home/examples/an-application.md
@@ -1,7 +1,7 @@
---
title: An Application
title: একটি অ্যাপ্লিকেশন
order: 2
domid: todos-example
---

Using `props` and `state`, we can put together a small Todo application. This example uses `state` to track the current list of items as well as the text that the user has entered. Although event handlers appear to be rendered inline, they will be collected and implemented using event delegation.
`props` এবং 'state`ব্যবহার করে, আমরা একটি ছোটো TODO অ্যাপ্লিকেশন বানাতে পারি। এই উদাহরণটি TODO আইটেমের বর্তমান তালিকা এবং ইউজার যা লিখেছে তা ধরে রাখার জন্য স্টেট ব্যবহার করে। যদিও ইভেন্ট হ্যান্ডলারগুলি ইনলাইনে রেন্ডার হয় বলে মনে হয়, আসলে ইভেন্ট ডেলিগেশনের মাধ্যমে তারা সংগৃহীত এবং ব্যবহৃত হয়।
nutboltu marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 3 additions & 3 deletions content/home/marketing/component-based.md
@@ -1,8 +1,8 @@
---
title: Component-Based
title: কম্পোনেন্ট-ভিত্তিক
order: 1
---

Build encapsulated components that manage their own state, then compose them to make complex UIs.
এটি এনক্যাপ্সুলেটেড কম্পোনেন্ট তৈরি করতে পারে যেগুলো নিজেরাই নিজেদের স্টেট ম্যানেজ করে, অতঃপর তাদের একত্রিত করে জটিল UI গঠন করে।

Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.
যেহেতু কম্পোনেন্টের লজিক টেমপ্ল্যাটের পরিবর্তে জাভাস্ক্রিপ্টে লিখা হয়েছে, আপনি সহজেই আপনার অ্যাপের মাধ্যমে সমৃদ্ধ ডেটা পাস করতে পারেন এবং DOM থেকে স্টেটকে পৃথক রাখতে পারেন।
6 changes: 3 additions & 3 deletions content/home/marketing/declarative.md
@@ -1,8 +1,8 @@
---
title: Declarative
title: ডিক্লারেটিভ
order: 0
---

React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.
React ঝামেলাহীনভাবে ইন্টারেক্টিভ UI তৈরি করে। আপনার অ্যাপ্লিকেশনের প্রতিটি ষ্টেটের জন্য সহজ ভিউ ডিজাইন করুন, এবং React দক্ষতার সাথে সঠিক কম্পোনেন্টটি আপডেট এবং রেন্ডার করবে যখন আপনার ডেটা পরিবর্তন হবে।

Declarative views make your code more predictable and easier to debug.
ডিক্লারেটিভ ভিউ আপনার কোডকে আরো প্রেডিক্টেবল এবং ডিবাগ করতে সহজ করে।
6 changes: 3 additions & 3 deletions content/home/marketing/learn-once-write-anywhere.md
@@ -1,8 +1,8 @@
---
title: Learn Once, Write Anywhere
title: একবার শিখুন, যে কোনোখানে লিখুন
order: 2
---

We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code.
আমরা আপনার বাকি প্রযুক্তি স্ট্যাক সম্পর্কে অনুমান করি না, এজন্যে আপনি বর্তমান কোডে কোন পরিবর্তন ছাড়াই নতুন ফিচার React এ ডেভেলপ করতে পারেন।

React can also render on the server using Node and power mobile apps using [React Native](https://facebook.github.io/react-native/).
Node এবং পাওয়ার মোবাইল অ্যাপ্লিকেশন [React Native](https://facebook.github.io/react-native/) ব্যবহার করে সার্ভারে React রেন্ডার করতে পারেন।
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nutboltu how about-
"React সার্ভারে রেন্ডার করতে পারে Node এর সাহায্যে এবং মোবাইল আপ্লিকেশনেও ব্যাবহৃত হতে পারে React Native এর সাহায্যে।"

12 changes: 6 additions & 6 deletions src/pages/index.js
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; ইউজার ইন্টারফেস তৈরির জন্য একটি জাভাস্ক্রিপ্ট লাইব্রেরি"
ogUrl={createOgUrl('index.html')}
/>
<div css={{width: '100%'}}>
Expand Down Expand Up @@ -133,7 +133,7 @@ class Home extends Component {
fontSize: 30,
},
}}>
A JavaScript library for building user interfaces
ইউজার ইন্টারফেস তৈরির জন্য একটি জাভাস্ক্রিপ্ট লাইব্রেরি
</p>
<Flex
valign="center"
Expand All @@ -148,12 +148,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 @@ -285,12 +285,12 @@ class Home extends Component {
<Flex valign="center">
<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