تخطَّ إلى المحتوى

glot لـ Strapi

أنظمة إدارة المحتوى · موصّل

يتصل glot مباشرةً بـ Strapi: يقرأ محتواك ويترجمه وفق مسرد المصطلحات والفحوصات الخاصة بك، ثم يكتب الترجمات في لغات Strapi.

خطوات المنصة مكتوبة بالإنجليزية، بأسماء القوائم كما تظهر في واجهة Strapi.

ربط Strapi

  1. Enable localization on your content types (the i18n plugin, built into Strapi 5) and add your locales.
  2. In Strapi, go to Settings → API Tokens and create a token (Full access is simplest).
  3. In glot, open your project → Integrations → Strapi and paste the server URL and the token.
  4. Click Sync now. On Strapi 5, translated locales are written as drafts unless you turn publishing on.
  5. Optional: in Settings → Webhooks, add the card's webhook URL for the events Entry: create, update, publish.
الوثائق الكاملة للموصّل

بديل: الوسم العام

لترجمة ما لا يغطيه تكامل Strapi داخل المتصفح، أضف الوسم العام بدلًا من ذلك.

  1. في glot، أنشئ مشروعًا وأضف لغاتك.
  2. افتح glot Edge ← وسم الموقع وأدخل عنوان موقعك: يترجمه glot ويعرض عليك معاينة. بعد لصق الوسم، تحقق من التثبيت في المكان نفسه ثم فعّل الوسم.
  3. انسخ وسمك من ذلك التبويب: فهو يتضمن مشروعك ومفتاحه العام (data-key). يوضح الوسم أدناه شكله.
وسم glot
<script src="https://app.glotlang.com/widget/glot.js" data-project="your-project" data-key="pk_…" async></script>
  1. Open your front-end project (for example app/layout.tsx in Next.js, or your framework's root HTML template).
  2. Paste the glot tag in <head>.
  3. Deploy the front end.
دليل وسم الموقع

الخطط المطلوبة

Not a Strapi setting; it is your front-end code. Works with self-hosted Strapi and Strapi Cloud.

من جهة glot، راجع صفحة الأسعار لمعرفة ما تتضمنه كل خطة. glot Edge (الروابط المترجمة) جزء من خطة Growth، مع تجربة محدودة في Pro.

روابط مترجمة لمحركات البحث

للحصول على صفحات مترجمة تفهرسها محركات البحث دون تشغيل JavaScript، ضع glot Edge على نطاق فرعي من نطاقك (es.example.com) بسجلّي DNS:

سجلات DNS (يظهر رمز TXT في glot Edge ← الإعداد)
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, not Strapi. Add the CNAME and TXT at your DNS provider. Not possible on a host's free subdomain.

كيف يعمل glot Edge

أسئلة

هل glot شريك لـ Strapi؟
لا. glot مستقل، وليس تابعًا لـ Strapi ولا معتمدًا منه. يستخدم هذا الدليل ميزات Strapi القياسية فقط.
هل يغيّر glot محتواي على Strapi؟
يبقى محتواك الأصلي كما هو. يكتب glot الترجمات في حقول اللغات في Strapi، حيث يمكنك مراجعتها قبل النشر.
هل ستفهرس محركات البحث ترجماتي؟
ليس بالوسم وحده: فهو يترجم في المتصفح، لذا تفهرس محركات البحث لغتك الأصلية في الغالب. تحتاج الصفحات المترجمة ذات الروابط الخاصة إلى glot Edge أو إلى منصة تنشر كل لغة على رابط خاص بها.
Do I put the tag in the Strapi admin panel?
No. The admin panel is for editors. Visitors see your front end, so the tag goes there.

الوثائق الرسمية لـ Strapi

ترجم موقعك على Strapi

أنشئ مشروعًا واختر لغاتك واتبع الخطوات أعلاه.

Strapi علامة تجارية لمالكها. glot ليس تابعًا لـ Strapi.