glot لـ Sanity
أنظمة إدارة المحتوى · موصّل
يتصل glot مباشرةً بـ Sanity: يقرأ محتواك ويترجمه وفق مسرد المصطلحات والفحوصات الخاصة بك، ثم يكتب الترجمات في لغات Sanity.
خطوات المنصة مكتوبة بالإنجليزية، بأسماء القوائم كما تظهر في واجهة Sanity.
ربط Sanity
- Use a Sanity i18n model glot reads: field-level (language-filter objects or internationalized arrays) or document-level (document-internationalization).
- In sanity.io/manage, copy the Project ID and dataset, and create an API token with Editor permissions (API → Tokens).
- In glot, open your project → Integrations → Sanity and paste the Project ID, the dataset and the token.
- Click Sync now. glot writes the translations into your localized fields or linked translation documents.
- Optional: in sanity.io/manage → API → Webhooks, create a webhook on the card's webhook URL, triggered on create and update.
بديل: الوسم العام
لترجمة ما لا يغطيه تكامل Sanity داخل المتصفح، أضف الوسم العام بدلًا من ذلك.
- في glot، أنشئ مشروعًا وأضف لغاتك.
- افتح glot Edge ← وسم الموقع وأدخل عنوان موقعك: يترجمه glot ويعرض عليك معاينة. بعد لصق الوسم، تحقق من التثبيت في المكان نفسه ثم فعّل الوسم.
- انسخ وسمك من ذلك التبويب: فهو يتضمن مشروعك ومفتاحه العام (data-key). يوضح الوسم أدناه شكله.
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>- Open your front-end project (for example app/layout.tsx in Next.js, or your framework's root HTML template).
- Paste the glot tag in <head> (in Next.js, a Script component in the root layout also works).
- Deploy the front end.
الخطط المطلوبة
Not a Sanity setting; it is your front-end code. No Sanity plan limit.
من جهة glot، راجع صفحة الأسعار لمعرفة ما تتضمنه كل خطة. glot Edge (الروابط المترجمة) جزء من خطة Growth، مع تجربة محدودة في Pro.
روابط مترجمة لمحركات البحث
للحصول على صفحات مترجمة تفهرسها محركات البحث دون تشغيل JavaScript، ضع glot Edge على نطاق فرعي من نطاقك (es.example.com) بسجلّي DNS:
es.example.com. CNAME edge.glotlang.com.
_glot.es.example.com. TXT "<token shown in the dashboard>"The custom domain belongs to your front-end host (Vercel, Netlify...), not Sanity. Add the CNAME and TXT at your DNS provider. Not possible on a host's free subdomain.
كيف يعمل glot Edgeأسئلة
- هل glot شريك لـ Sanity؟
- لا. glot مستقل، وليس تابعًا لـ Sanity ولا معتمدًا منه. يستخدم هذا الدليل ميزات Sanity القياسية فقط.
- هل يغيّر glot محتواي على Sanity؟
- يبقى محتواك الأصلي كما هو. يكتب glot الترجمات في حقول اللغات في Sanity، حيث يمكنك مراجعتها قبل النشر.
- هل ستفهرس محركات البحث ترجماتي؟
- ليس بالوسم وحده: فهو يترجم في المتصفح، لذا تفهرس محركات البحث لغتك الأصلية في الغالب. تحتاج الصفحات المترجمة ذات الروابط الخاصة إلى glot Edge أو إلى منصة تنشر كل لغة على رابط خاص بها.
- Do I change anything in Sanity Studio?
- No. glot translates the rendered pages of your front-end site. Sanity Studio is not touched.
الوثائق الرسمية لـ Sanity
ترجم موقعك على Sanity
أنشئ مشروعًا واختر لغاتك واتبع الخطوات أعلاه.
تكاملات أخرى: أنظمة إدارة المحتوى
Sanity علامة تجارية لمالكها. glot ليس تابعًا لـ Sanity.