সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
Google Workspace অ্যাড-অনগুলি তার ব্যবহারকারীর লোকেল এবং টাইমজোন অ্যাক্সেস করতে পারে এবং তার ইন্টারফেস এবং আচরণ কাস্টমাইজ করতে সেই তথ্য ব্যবহার করতে পারে। এই তথ্য অ্যাক্সেস করার জন্য আপনার অ্যাড-অনকে অনুমতি দেওয়ার জন্য আপনাকে অবশ্যই আপনার অ্যাড-অনের ম্যানিফেস্ট কনফিগার করতে হবে।
অ্যাড-অন ম্যানিফেস্ট কনফিগার করুন
আপনি নিম্নলিখিত পদক্ষেপগুলি সহ ব্যবহারকারীর লোকেল এবং টাইমজোন তথ্য অ্যাক্সেস করতে আপনার অ্যাড-অন কনফিগার করতে পারেন:
যদি এটি ইতিমধ্যে উপস্থিত না থাকে, তাহলে ম্যানিফেস্টের oauthScopes তালিকায় নিম্নলিখিত স্পষ্ট সুযোগ যোগ করুন: https://www.googleapis.com/auth/script.locale
আপনি যদি অ্যাড-অনের oauthScope তালিকায় একটি সুযোগ যোগ করেন, ব্যবহারকারীদের অবশ্যই অ্যাড-অনটি পরের বার খোলার পরে পুনরায় অনুমোদন করতে হবে।
লোকেল এবং টাইমজোন তথ্য পান
সঠিকভাবে কনফিগার করা হলে ইভেন্ট অবজেক্ট ব্যবহারকারীর লোকেল তথ্য বহন করে। নিম্নলিখিত ক্ষেত্রগুলি ইভেন্ট অবজেক্টের commonEventObject সাবস্ট্রাকচারে উপস্থিত হয়:
commonEventObject.userLocale — ব্যবহারকারীর ভাষা এবং দেশ/অঞ্চল শনাক্তকারী। উদাহরণস্বরূপ, en-US .
ব্যবহারকারী আপনার অ্যাড-অনের সাথে ইন্টারঅ্যাক্ট করার সাথে সাথে ইভেন্ট অবজেক্টগুলিঅ্যাকশন কলব্যাক ফাংশনে এবং হোমপেজে এবং প্রাসঙ্গিক ট্রিগার ফাংশনে প্রেরণ করা হয়। প্রতিটি কলব্যাক বা ট্রিগার ফাংশন ইভেন্ট অবজেক্ট থেকে লোকেল এবং টাইমজোন তথ্য পড়তে পারে এবং প্রয়োজনে এটি ব্যবহার করতে পারে। উদাহরণস্বরূপ, একটি কলব্যাক ফাংশন যা একটি নতুন কার্ডে নেভিগেট করছে তা কার্ডে কোন পাঠ্য যোগ করতে হবে তা নির্ধারণ করার সময় লোকেল স্ট্রিংকে নির্দেশ করতে পারে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-06-05 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["Google Workspace add-ons can be configured to access and utilize a user's locale and timezone for customization."],["Add-on developers must set `addOns.common.useLocaleFromApp` to `true` and include the `https://www.googleapis.com/auth/script.locale` scope in the manifest file for locale and timezone access."],["Event objects provide the user's locale and timezone information through fields like `userLocale`, `timeZone.offset`, and `timeZone.id`, which add-ons can utilize in their functions."],["After adding the necessary scope, users need to re-authorize the add-on for the changes to take effect."],["Add-ons should only request necessary scopes and consider removing unused ones, especially those previously used for locale and timezone access through other APIs or services."]]],["Google Workspace add-ons can access user locale and timezone by configuring the add-on manifest. Set `addOns.common.useLocaleFromApp` to `true` and add `https://www.googleapis.com/auth/script.locale` to `oauthScopes`. This requires users to re-authorize the add-on. Event objects contain `userLocale`, `timeZone.offset`, and `timeZone.id`. Callback functions and trigger functions read this information from the event object to customize the add-on's interface and behavior, such as text on cards.\n"]]