مقال المساعدة

كيفية استبعاد الروابط أو الكتل أو الكلمات المحددة من الترجمة في MultiLipi

MultiLipi
MultiLipi 6/19/2025
10 دقائق اقرأ

Not every pixel of your website requires localization. Legal disclaimers often need to remain in their original jurisdiction's language; code snippets must remain in English; and admin routes should never be indexed.

يوفر MultiLipi Three-Tier Exclusion System—URL, Block, and Word—giving you surgical precision over what the AI ignores.

The Three Tiers of Exclusion

Before configuring rules, understand which level of control you need:

Page-Level (URL Rules)

الأكشن: Completely disables translation for an entire page or directory.

حالة الاستخدام: Admin panels (/app/*), User Settings, or "Legally Binding" English Terms of Service.

Component-Level (Block Rules)

الأكشن: Ignores content inside specific HTML elements (divs, spans) based on their CSS Class.

حالة الاستخدام: Code blocks (<pre>), proper nouns in headers, or complex third-party widgets.

Term-Level (Word Rules)

الأكشن: Prevents specific string matches from being processed.

حالة الاستخدام: Product model numbers or non-translatable technical jargon.

Accessing the Governance Engine

To define your negative logic:

  1. Navigate: Open your MultiLipi Dashboard and select your active project.
  2. Locate Settings: In the sidebar, scroll down to الإعدادات واختر Translation Exclusions.
  3. Interface: You will see a list of active rules separated by category (URLs, Blocks, Words).
MultiLipi Translation Exclusions settings page showing Exclude URLs and Exclude Blocks sections with Add Rule buttons highlighted, displaying empty state with prompts to create first exclusion rules

Configuring Logic Rules

اضغط على Add Rule button to define a new constraint.

A. Defining the Pattern

You must tell the engine how to match the content:

Rule Type:

  • Starts With: Best for directories (e.g., /blog/ excludes all blog posts).
  • Ends With: Best for file types (e.g., .pdf).
  • Contains: Wildcard match for any URL containing a specific string.
  • Exact Match: Targets a single specific page.

القيمة:

Enter the path, CSS class name (without the .), or word.

B. Scope & Behavior

Languages:

Apply the rule globally (All Languages) or restrict it to specific locales (e.g., Exclude /التسعير only in French).

Switcher Visibility (Critical UX)

Toggle: "Hide Language Switcher"

التأثير: If you exclude a page (like a login screen), you likely want to hide the language switcher on that page so users don't try to switch languages and see nothing happen. This toggle automates that UX cleanup.

Add new translation URL Rule modal dialog showing configuration options including Rule Type (Exclude/Include toggle), Rule Condition dropdown set to Starts With, Target URLs input field, Exclude Language selector, and Cancel/Save Rule buttons

Execution & Verification

Once you click Save Rule:

Immediate Propagation

The rule is pushed to the edge network instantly.

Cache Purge

We automatically purge the cache for the affected paths to ensure the "Untranslated" version is served immediately.

Strategic Use Cases

Rule TypeScenarioConfiguration
URL RuleUser Dashboard: You want the public site translated, but the logged-in app (/app/...) to remain in English.
النوع: Starts With
القيمة: /app/
Block RuleCode Snippets: You run a dev blog and want the tutorial text translated, but the code examples must remain valid code.
النوع: CSS Class
القيمة: code-snippet
URL RuleRegional Legal: Your Terms of Service are only valid in English.
النوع: Exact Match
القيمة: /terms

هل كان هذا المقال مفيدا؟

في هذا المقال

شارك

هل أنت مستعد للانطلاق عالميا؟

دعونا نناقش كيف يمكن ل MultiLipi تحويل استراتيجية المحتوى الخاصة بك ومساعدتك في الوصول إلى جماهير عالمية من خلال تحسين متعدد اللغات مدعوم بالذكاء الذكاء الاصطناعي.

املأ النموذج وسيتواصل معك فريقنا خلال 24 ساعة.