স্থানীয় টেক্সট নির্দিষ্ট করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
অ্যাকশন সেন্টার লোকাল সার্ভিস বিজ্ঞাপন এন্ড-টু-এন্ড ইন্টিগ্রেশনে স্থানীয়করণকে সমর্থন করার জন্য এটি অত্যন্ত সুপারিশ করা হয়। ব্যবহারকারীদের তাদের ভাষা সেটিংসের উপর ভিত্তি করে একটি স্থানীয় অভিজ্ঞতা দেখানো হয়। যদি কোনো স্থানীয়করণ সেট করা না থাকে, ডিফল্ট পাঠ্য ব্যবহারকারীকে দেখানো হতে পারে। আপনি ইন্টিগ্রেশনের অনেক ক্ষেত্রের জন্য স্থানীয় পাঠ্য প্রদান করতে সক্ষম, যেমন পরিষেবার নাম এবং বিবরণ। Text
বার্তা ব্যবহার করে স্থানীয়করণ করা যেতে পারে এমন ক্ষেত্রগুলির সম্পূর্ণ তালিকার জন্য অনুগ্রহ করে আমাদের ফিড স্পেসিফিকেশন দেখুন।
স্থানীয়করণ বাস্তবায়ন
// A possibly-localized text payload. Some Text fields may contain marked-up
// content.
message Text {
// Required. Text value in an unknown locale, which will be displayed if
// `localized_value` for the user locale is empty or missing. The locale for
// this value may depend on the partner or service provider, and it should not
// be assumed to be any specific language.
string value = 1;
// Per-locale text values. Required.
repeated LocalizedString localized_value = 2;
}
Text
বার্তা ব্যবহার করে এমন ফিডের যেকোনো ক্ষেত্র প্রতিটি সমর্থিত ভাষার জন্য একটি localized_value
প্রদান করে স্থানীয়করণ করা যেতে পারে।
value
এবং localized_value
উভয়ই নির্দিষ্ট করতে হবে।
- আমরা ব্যবহারকারীর লোকেলের উপর ভিত্তি করে
localized_value
দেখাব (যা ব্যবহারকারীর ভাষা ব্রাউজার সেটিংসে সেট করা আছে)। - যখন ব্যবহারকারীর লোকেল আপনার সমর্থিত স্থানীয়করণের তালিকায় না থাকে তখন মান একটি ডিফল্ট হিসাবে ব্যবহার করা হবে
- আপনি যদি মান সংজ্ঞায়িত না করেন এবং ব্যবহারকারীর লোকেল আপনার সমর্থিত স্থানীয়করণের তালিকায় না থাকে তাহলে আমরা localized_value-এ উপস্থিত প্রথম মানটি ব্যবহার করব। এই ফলব্যাক উপলব্ধ থাকাকালীন এটি দৃঢ়ভাবে আপনার জন্য ডিফল্ট মানটি স্পষ্টভাবে নির্দিষ্ট করার জন্য সুপারিশ করা হয়।
আপনি যদি আপনার সিস্টেমে স্থানীয়করণ সমর্থন না করেন, তাহলে অনুগ্রহ করে localized_value
সেট করুন এবং আপনার সমর্থন করা একমাত্র ভাষা দিয়ে locale
সেট করুন। value
সেট করুন যা ডিফল্ট হিসাবে ব্যবহার করা যেতে পারে।
উদাহরণ পরিষেবা ফিড স্নিপেট
"localized_service_name": {
"value": "Chocolate Tasting",
"localized_value": [
{
"locale": "en",
"value": "Chocolate Tasting"
},
{
"locale": "fr",
"value": "Dégustation de chocolats"
}
]
}
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eLocalizing Actions Center Local Services Ads is highly recommended to provide users with a tailored experience based on their language settings.\u003c/p\u003e\n"],["\u003cp\u003eLocalization can be achieved by providing translated text for various fields, such as service names and descriptions, as detailed in the feed specification.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eText\u003c/code\u003e message structure allows for specifying a default value and localized values for supported languages, ensuring content is displayed appropriately.\u003c/p\u003e\n"],["\u003cp\u003eWhen a user's locale is not supported, either the default value or the first provided localized value will be displayed as a fallback.\u003c/p\u003e\n"],["\u003cp\u003eEven without full localization support, setting a default value and a single localized value for the supported language is advised for consistency.\u003c/p\u003e\n"]]],["Localization is strongly encouraged within the Actions Center Local Services Ads integration. Fields using the `Text` message can be localized by providing a `localized_value` for each supported language and a default `value`. The user's language settings determine which `localized_value` is shown. If no locale match exists, the `value` acts as the default; or the first value in localized_value will be used. If localization is not supported, a single `localized_value` and `value` should be provided.\n"],null,["# Specify localized texts\n\nIt is highly recommended to support localization in the Actions Center Local Services Ads End-to-End\nintegration. Users are shown a localized experience based on their language\nsettings. If no localization is set, the default text may be shown to the\nuser. You are able to provide localized text for many fields in the\nintegration, such as service names and descriptions. Please refer to our\n[feed\nspecification](/actions-center/verticals/local-services/e2e/integration-steps/feeds) for the full list of fields that can be localized by using the\n`Text` message.\n\nImplementing localization\n-------------------------\n\n```mysql\n// A possibly-localized text payload. Some Text fields may contain marked-up\n// content.\nmessage Text {\n // Required. Text value in an unknown locale, which will be displayed if\n // `localized_value` for the user locale is empty or missing. The locale for\n // this value may depend on the partner or service provider, and it should not\n // be assumed to be any specific language.\n string value = 1;\n\n // Per-locale text values. Required.\n repeated LocalizedString localized_value = 2;\n}\n```\n\nAny field in the feeds that uses a `Text` message can be localized by providing\na `localized_value` for each supported language.\n\nIt is required to specify both the `value` and\n`localized_value`.\n\n- We will show the `localized_value` based on the user's locale (which is set in the user's language browser settings).\n- Value will be used as a default when the user's locale is not in your list of supported localizations\n - Should you not define value and the users locale is not in your list of supported localizations we will use the first value present in localized_value. While this fallback is available it is strongly recommend for you to specify the default value explicitly.\n\nIf you do not support localization in your system, please set\n`localized_value` and set `locale` with the only\nlanguage you support. Set `value` as well which may be used as a\ndefault.\n\nExample Services Feed Snippet\n-----------------------------\n\n```scdoc\n \"localized_service_name\": {\n \"value\": \"Chocolate Tasting\",\n \"localized_value\": [\n {\n \"locale\": \"en\",\n \"value\": \"Chocolate Tasting\"\n },\n {\n \"locale\": \"fr\",\n \"value\": \"Dégustation de chocolats\"\n }\n ]\n }\n```"]]