-
Notifications
You must be signed in to change notification settings - Fork 406
[i18n] Add Bengali translation for blueprints documentation #3462
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
Open
perashanid
wants to merge
4
commits into
WordPress:trunk
Choose a base branch
from
perashanid:bn-translate-blueprints-docs
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+365
−0
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
43f642b
[i18n] Add Bengali translation for blueprints documentation
perashanid be4e609
Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/curr…
perashanid 67f5f3d
Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/curr…
perashanid 0a2c3af
Update packages/docs/site/i18n/bn/docusaurus-plugin-content-docs/curr…
perashanid File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
...docs/site/i18n/bn/docusaurus-plugin-content-docs/current/blueprints/01-index.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| --- | ||
| title: শুরু করা | ||
| slug: /blueprints/getting-started | ||
| description: ব্লুপ্রিন্টের একটি দ্রুত-শুরু গাইড। তারা কী সমস্যা সমাধান করে এবং আপনি কীভাবে সেগুলি ব্যবহার শুরু করতে পারেন তা বুঝুন। | ||
| --- | ||
|
|
||
| # ব্লুপ্রিন্ট দিয়ে শুরু করা | ||
|
|
||
| ব্লুপ্রিন্ট হল আপনার নিজস্ব WordPress Playground ইনস্ট্যান্স সেটআপ করার জন্য JSON ফাইল। উদাহরণস্বরূপ: | ||
|
|
||
| ```json | ||
| { | ||
| "$schema": "https://playground.wordpress.net/blueprint-schema.json", | ||
| "landingPage": "/wp-admin/", | ||
| "preferredVersions": { | ||
| "php": "8.3", | ||
| "wp": "latest" | ||
| }, | ||
| "steps": [ | ||
| { | ||
| "step": "login", | ||
| "username": "admin", | ||
| "password": "password" | ||
| } | ||
| ] | ||
| } | ||
| ``` | ||
|
|
||
| ব্লুপ্রিন্ট ব্যবহার করার তিনটি উপায় রয়েছে: | ||
|
|
||
| - [WordPress Playground ওয়েবসাইটে URL "ফ্র্যাগমেন্ট"-এ একটি ব্লুপ্রিন্ট পেস্ট করুন](/blueprints/using-blueprints#url-fragment)। | ||
| - [JavaScript API এর সাথে সেগুলি ব্যবহার করুন](/blueprints/using-blueprints#javascript-api)। | ||
| - [QueryParam blueprint-url এর মাধ্যমে একটি blueprint JSON ফাইল রেফারেন্স করুন](/developers/apis/query-api/) | ||
|
|
||
| ## ব্লুপ্রিন্ট দ্বারা কোন সমস্যাগুলি সমাধান করা হয়? | ||
|
|
||
| ### কোডিং দক্ষতার প্রয়োজন নেই | ||
|
|
||
| ব্লুপ্রিন্ট শুধুমাত্র JSON। আপনার একটি ডেভেলপমেন্ট এনভায়রনমেন্ট, কোনো লাইব্রেরি, বা এমনকি JavaScript জ্ঞানের প্রয়োজন নেই। আপনি যেকোনো টেক্সট এডিটরে সেগুলি লিখতে পারেন। | ||
|
|
||
| তবে, আপনার যদি একটি ডেভেলপমেন্ট এনভায়রনমেন্ট থাকে, তাহলে এটি দুর্দান্ত! আপনি অটোকমপ্লিশন এবং ভ্যালিডেশন পেতে [Blueprint JSON schema](https://playground.wordpress.net/blueprint-schema.json) ব্যবহার করতে পারেন। | ||
|
|
||
| ### HTTP রিকোয়েস্ট আপনার জন্য পরিচালিত হয় | ||
|
|
||
| ব্লুপ্রিন্ট আপনার ঘোষিত যেকোনো রিসোর্স আপনার জন্য ফেচ করে। আপনাকে একাধিক `fetch()` কল পরিচালনা করা বা সেগুলি শেষ হওয়ার জন্য অপেক্ষা করার বিষয়ে চিন্তা করতে হবে না। আপনি শুধু কয়েকটি লিঙ্ক ঘোষণা করতে পারেন এবং ব্লুপ্রিন্টকে ডাউনলোডিং পাইপলাইন পরিচালনা এবং অপ্টিমাইজ করতে দিতে পারেন। | ||
|
|
||
| ### আপনি একটি ব্লুপ্রিন্ট-প্রিকনফিগার করা Playground এর সাথে লিঙ্ক করতে পারেন | ||
|
|
||
| যেহেতু ব্লুপ্রিন্ট URL-এ পেস্ট করা যায়, আপনি একটি নির্দিষ্ট কনফিগারেশন সহ একটি Playground এম্বেড বা লিঙ্ক করতে পারেন। উদাহরণস্বরূপ, এই বাটনে ক্লিক করলে PHP 8.3 এবং একটি pendant থিম ইনস্টল করা একটি Playground খুলবে: | ||
|
|
||
| import BlueprintExample from '@site/src/components/Blueprints/BlueprintExample.mdx'; | ||
|
|
||
| <BlueprintExample justButton={true} blueprint={{ | ||
| "preferredVersions": { | ||
| "php": "8.3", | ||
| "wp": "latest" | ||
| }, | ||
| "steps": [ | ||
| { | ||
| "step": "installTheme", | ||
| "themeData": { | ||
| "resource": "wordpress.org/themes", | ||
| "slug": "pendant" | ||
| }, | ||
| "options": { | ||
| "activate": true | ||
| } | ||
| } | ||
| ] | ||
| }} /> | ||
|
|
||
| ### ডিফল্টভাবে বিশ্বস্ত | ||
|
|
||
| ব্লুপ্রিন্ট শুধুমাত্র JSON। অন্যদের ব্লুপ্রিন্ট চালানোর জন্য বিশ্বাসের উপাদান প্রয়োজন হয় না। যেহেতু ব্লুপ্রিন্ট নির্বিচার JavaScript এক্সিকিউট করতে পারে না, তারা যা করতে পারে তাতে সীমিত। | ||
|
|
||
| ব্লুপ্রিন্টের সাথে, WordPress.org প্লাগইন ডিরেক্টরি প্লাগইনগুলির লাইভ প্রিভিউ অফার করতে সক্ষম হতে পারে। প্লাগইন লেখকরা শুধু তাদের প্রয়োজনীয় যেকোনো সাইট অপশন বা স্টার্টার কন্টেন্ট সহ Playground ইনস্ট্যান্স প্রিকনফিগার করতে একটি কাস্টম ব্লুপ্রিন্ট লিখবেন। | ||
|
|
||
| ### একবার লিখুন, যেকোনো জায়গায় ব্যবহার করুন | ||
|
|
||
| ব্লুপ্রিন্ট ওয়েব এবং node.js উভয়েই কাজ করে। আপনি সেগুলি একই JavaScript প্রসেসে এবং একটি রিমোট Playground Client এর মাধ্যমে চালাতে পারেন। তারা কনফিগারেশনের সার্বজনীন ভাষা। যেখানে আপনি Playground চালাতে পারেন, সেখানে আপনি ব্লুপ্রিন্ট ব্যবহার করতে পারেন। |
168 changes: 168 additions & 0 deletions
168
...18n/bn/docusaurus-plugin-content-docs/current/blueprints/02-using-blueprints.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,168 @@ | ||
| --- | ||
| title: ব্লুপ্রিন্ট ব্যবহার করা | ||
| slug: /blueprints/using-blueprints | ||
| description: URL ফ্র্যাগমেন্ট, কোয়েরি প্যারামিটার, বান্ডেল এবং JavaScript API সহ ব্লুপ্রিন্ট ব্যবহার করার বিভিন্ন উপায় আবিষ্কার করুন। | ||
| --- | ||
|
|
||
| # ব্লুপ্রিন্ট ব্যবহার করা | ||
|
|
||
| আপনি নিম্নলিখিত উপায়ে ব্লুপ্রিন্ট ব্যবহার করতে পারেন: | ||
|
|
||
| - Playground-এ URL ফ্র্যাগমেন্ট হিসাবে সেগুলি পাস করে। | ||
| - `blueprint-url` প্যারামিটার ব্যবহার করে একটি URL থেকে সেগুলি লোড করে। | ||
| - ব্লুপ্রিন্ট বান্ডেল (ZIP ফাইল বা ডিরেক্টরি) ব্যবহার করে। | ||
| - JavaScript API ব্যবহার করে। | ||
|
|
||
| ## URL ফ্র্যাগমেন্ট | ||
|
|
||
| ব্লুপ্রিন্ট ব্যবহার শুরু করার সবচেয়ে সহজ উপায় হল WordPress Playground ওয়েবসাইটে URL "ফ্র্যাগমেন্ট"-এ একটি পেস্ট করা, যেমন `https://playground.wordpress.net/#{"preferredVersions...`। | ||
|
|
||
| উদাহরণস্বরূপ, WordPress এবং PHP এর নির্দিষ্ট সংস্করণ সহ একটি Playground তৈরি করতে আপনি নিম্নলিখিত ব্লুপ্রিন্ট ব্যবহার করবেন: | ||
|
|
||
| ```json | ||
| { | ||
| "$schema": "https://playground.wordpress.net/blueprint-schema.json", | ||
| "preferredVersions": { | ||
| "php": "8.3", | ||
| "wp": "6.5" | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| এবং তারপর আপনি | ||
| `https://playground.wordpress.net/#{"preferredVersions":{"php":"8.3","wp":"6.5"}}` এ যাবেন। | ||
|
|
||
| :::tip | ||
| Javascript-এ, আপনি [`JSON.stringify`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) এবং [`JSON.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse) দিয়ে যেকোনো blueprint JSON এর একটি কমপ্যাক্ট সংস্করণ পেতে পারেন | ||
| উদাহরণ: | ||
|
|
||
| ```js | ||
| const blueprintJson = `{ | ||
| "$schema": "https://playground.wordpress.net/blueprint-schema.json", | ||
| "preferredVersions": { | ||
| "php": "8.3", | ||
| "wp": "6.5" | ||
| } | ||
| }`; | ||
| const minifiedBlueprintJson = JSON.stringify(JSON.parse(blueprintJson)); // {"preferredVersions":{"php":"8.3","wp":"6.5"}} | ||
| ``` | ||
|
|
||
| ::: | ||
|
|
||
| অনুসরণ করার জন্য আপনাকে লিঙ্ক পেস্ট করতে হবে না। আমরা একটি "Try it out" বাটন সহ কোড উদাহরণ ব্যবহার করব যা স্বয়ংক্রিয়ভাবে আপনার জন্য উদাহরণগুলি চালাবে: | ||
|
|
||
| import BlueprintExample from '@site/src/components/Blueprints/BlueprintExample.mdx'; | ||
|
|
||
| <BlueprintExample justButton={true} blueprint={{ | ||
| "preferredVersions": { | ||
| "php": "8.3", | ||
| "wp": "6.5" | ||
| } | ||
| }} /> | ||
|
|
||
| ### Base64 এনকোডেড ব্লুপ্রিন্ট | ||
|
|
||
| কিছু টুল, যেমন GitHub, URL-এ পেস্ট করার সময় ব্লুপ্রিন্টটি সঠিকভাবে ফরম্যাট নাও করতে পারে। এই ক্ষেত্রে, আপনার ব্লুপ্রিন্টটি Base64-এ এনকোড করুন এবং এটি URL-এ যুক্ত করুন। উদাহরণস্বরূপ, এটি উপরের ব্লুপ্রিন্টের Base64 ফরম্যাট: `eyIkc2NoZW1hIjogImh0dHBzOi8vcGxheWdyb3VuZC53b3JkcHJlc3MubmV0L2JsdWVwcmludC1zY2hlbWEuanNvbiIsInByZWZlcnJlZFZlcnNpb25zIjogeyJwaHAiOiAiNy40Iiwid3AiOiAiNi41In19`। | ||
|
|
||
| এটি চালাতে, https://playground.wordpress.net/#eyIkc2NoZW1hIjogImh0dHBzOi8vcGxheWdyb3VuZC53b3JkcHJlc3MubmV0L2JsdWVwcmludC1zY2hlbWEuanNvbiIsInByZWZlcnJlZFZlcnNpb25zIjogeyJwaHAiOiAiNy40Iiwid3AiOiAiNi41In19 এ যান | ||
|
|
||
| :::tip | ||
| JavaScript-এ, আপনি গ্লোবাল ফাংশন `btoa()` দিয়ে [Base64 ফরম্যাটে](https://developer.mozilla.org/en-US/docs/Glossary/Base64#javascript_support) যেকোনো blueprint JSON পেতে পারেন। | ||
|
|
||
| উদাহরণ: | ||
|
|
||
| ```js | ||
| const blueprintJson = `{ | ||
| "$schema": "https://playground.wordpress.net/blueprint-schema.json", | ||
| "preferredVersions": { | ||
| "php": "8.3", | ||
| "wp": "6.5" | ||
| } | ||
| }`; | ||
| const base64Blueprint = btoa(blueprintJson); // eyIkc2NoZW1hIjogImh0dHBzOi8vcGxheWdyb3VuZC53b3JkcHJlc3MubmV0L2JsdWVwcmludC1zY2hlbWEuanNvbiIsInByZWZlcnJlZFZlcnNpb25zIjogeyJwaHAiOiAiNy40Iiwid3AiOiAiNi41In19 | ||
| ``` | ||
|
|
||
| ::: | ||
|
|
||
| ### URL থেকে ব্লুপ্রিন্ট লোড করুন | ||
|
|
||
| যখন আপনার ব্লুপ্রিন্ট খুব বড় হয়ে যায়, তখন আপনি এটি URL-এ `?blueprint-url` কোয়েরি প্যারামিটারের মাধ্যমে লোড করতে পারেন, এভাবে: | ||
|
|
||
| [https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/latest-gutenberg/blueprint.json](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/latest-gutenberg/blueprint.json) | ||
|
|
||
| মনে রাখবেন যে ব্লুপ্রিন্টটি অবশ্যই সর্বজনীনভাবে অ্যাক্সেসযোগ্য হতে হবে এবং [সঠিক `Access-Control-Allow-Origin` হেডার](https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Access-Control-Allow-Origin) সহ পরিবেশন করতে হবে: | ||
|
|
||
| ``` | ||
| Access-Control-Allow-Origin: * | ||
| ``` | ||
|
|
||
| #### ব্লুপ্রিন্ট বান্ডেল | ||
|
|
||
| `?blueprint-url` প্যারামিটার এখন ZIP ফরম্যাটে ব্লুপ্রিন্ট বান্ডেলও সমর্থন করে। একটি ব্লুপ্রিন্ট বান্ডেল হল একটি ZIP ফাইল যাতে রুট লেভেলে একটি `blueprint.json` ফাইল থাকে, ব্লুপ্রিন্ট দ্বারা রেফারেন্স করা যেকোনো অতিরিক্ত রিসোর্স সহ। | ||
|
|
||
| উদাহরণস্বরূপ, আপনি এভাবে একটি ব্লুপ্রিন্ট বান্ডেল লোড করতে পারেন: | ||
|
|
||
| [https://playground.wordpress.net/?blueprint-url=https://example.com/my-blueprint-bundle.zip](https://playground.wordpress.net/?blueprint-url=https://example.com/my-blueprint-bundle.zip) | ||
|
|
||
| একটি ব্লুপ্রিন্ট বান্ডেল ব্যবহার করার সময়, আপনি `bundled` রিসোর্স টাইপ ব্যবহার করে বান্ডেল করা রিসোর্স রেফারেন্স করতে পারেন: | ||
|
|
||
| ```json | ||
| { | ||
| "landingPage": "/my-file.txt", | ||
| "steps": [ | ||
| { | ||
| "step": "writeFile", | ||
| "path": "/wordpress/my-file.txt", | ||
| "data": { | ||
| "resource": "bundled", | ||
| "path": "/bundled-text-file.txt" | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| ``` | ||
|
|
||
| ব্লুপ্রিন্ট বান্ডেল সম্পর্কে আরও তথ্যের জন্য, [Blueprint Bundles](/blueprints/bundles) ডকুমেন্টেশন দেখুন। | ||
|
|
||
| ## JavaScript API | ||
|
|
||
| আপনি `@wp-playground/client` প্যাকেজ থেকে `startPlaygroundWeb()` ফাংশন ব্যবহার করে JavaScript API এর সাথে ব্লুপ্রিন্ট ব্যবহার করতে পারেন। এখানে একটি ছোট, স্বয়ংসম্পূর্ণ উদাহরণ যা আপনি JSFiddle বা CodePen-এ চালাতে পারেন: | ||
|
|
||
| ```html | ||
| <iframe id="wp-playground" style="width: 1200px; height: 800px"></iframe> | ||
| <script type="module"> | ||
| import { startPlaygroundWeb } from 'https://playground.wordpress.net/client/index.js'; | ||
|
|
||
| const client = await startPlaygroundWeb({ | ||
| iframe: document.getElementById('wp-playground'), | ||
| remoteUrl: `https://playground.wordpress.net/remote.html`, | ||
| blueprint: { | ||
| landingPage: '/wp-admin/', | ||
| preferredVersions: { | ||
| php: '8.3', | ||
| wp: 'latest', | ||
| }, | ||
| steps: [ | ||
| { | ||
| step: 'login', | ||
| username: 'admin', | ||
| password: 'password', | ||
| }, | ||
| { | ||
| step: 'installPlugin', | ||
| pluginData: { | ||
| resource: 'wordpress.org/plugins', | ||
| slug: 'friends', | ||
| }, | ||
| }, | ||
| ], | ||
| }, | ||
| }); | ||
|
|
||
| const response = await client.run({ | ||
| // wp-load.php is only required if you want to interact with WordPress. | ||
| code: '<?php require_once "/wordpress/wp-load.php"; $posts = get_posts(); echo "Post Title: " . $posts[0]->post_title;', | ||
| }); | ||
| console.log(response.text); | ||
| </script> | ||
| ``` | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.