---
agentTools:
  projectIndex: https://motaword.readme.io/llms.txt
---

# Configuration options

[block:parameters]
{
  "data": {
    "h-0": "Parameter Name",
    "h-1": "Script Tag Data Attribute Name",
    "h-2": "URL Query Parameter Name",
    "h-3": "Default Value",
    "h-4": "Required",
    "h-5": "Available Options",
    "h-6": "Description",
    "0-0": "Token",
    "1-0": "Project ID",
    "1-1": "data-project-id",
    "1-2": "mwActiveProjectId",
    "1-3": "null",
    "1-4": "yes",
    "1-5": "",
    "1-6": "This is the project ID given to you by MotaWord.",
    "0-1": "data-token",
    "0-2": "mwActiveToken",
    "0-3": "null",
    "0-4": "yes",
    "0-5": "",
    "0-6": "This is the token given to you by MotaWord.",
    "2-0": "Current Language",
    "2-1": "data-current-language",
    "2-2": "mwActiveCurrentLanguage",
    "2-3": "null",
    "2-4": "no",
    "2-5": "any language code that your website project supports",
    "2-6": "You can tell us the current locale language that the user should view. Usually given from backend systems.",
    "3-0": "Render Widget",
    "3-1": "data-render-widget",
    "3-2": "mwActiveRenderWidget",
    "3-3": "true",
    "3-4": "no",
    "3-5": "\"false\", \"no\", \"0\", true\", \"yes\", \"1\"",
    "3-6": "Tell Active JS to render a widget. You can also use Active programmatically without rendering a language selection widget.",
    "4-0": "Widget Element",
    "4-1": "data-widget-element",
    "4-2": "mwActiveWidgetElement",
    "4-3": "`#mw-active`",
    "4-4": "no",
    "4-5": "DOM selector to render the widget inside or \"\", \"NULL\"",
    "4-6": "Given a widget element, we'll render the widget inside this element. If not, we will create and use our default floating widget element.",
    "5-0": "Theme",
    "5-1": "data-theme",
    "5-2": "mwActiveTheme",
    "5-3": "light",
    "5-4": "no",
    "5-5": "light, dark",
    "5-6": "Specify which theme you would like to use with our widget.",
    "6-0": "Position",
    "6-1": "data-position",
    "6-2": "mwActivePosition",
    "6-3": "bottom-left",
    "6-4": "no",
    "6-6": "Specify where to render the widget. Giving \"\" empty string or \"NULL\" string will render the widget inline without the dropdown.",
    "6-5": "bottom-left, bottom-right, in-place, \"\", \"NULL\"",
    "7-0": "Follow User",
    "7-1": "data-follow-user",
    "7-2": "mwActiveFollowUser",
    "7-3": "true",
    "7-4": "no",
    "7-5": "\"false\", \"no\", \"0\", true\", \"yes\", \"1\"",
    "7-6": "Specify whether we should follow the user around in your website and automatically translate pages.",
    "8-0": "Use Dummy Translations",
    "8-1": "data-use-dummy-translations",
    "8-2": "mwActiveUseDummyTranslations",
    "8-3": "false",
    "8-4": "no",
    "8-5": "\"false\", \"no\", \"0\", true\", \"yes\", \"1\"",
    "8-6": "When enabled, we will simply prefix all translatable content with `Translated ({languageCode}) - `",
    "9-0": "Use Dynamic Translations",
    "9-1": "data-use-dynamic-translations",
    "9-2": "mwActiveUseDynamicTranslations",
    "9-3": "true",
    "9-4": "no",
    "9-5": "\"false\", \"no\", \"0\", true\", \"yes\", \"1\"",
    "9-6": "When enabled, we will use Intersection and Mutation observers to translate the page. Otherwise, we will simply parse the whole DOM and translate only once.",
    "10-0": "Locale Change Mode",
    "10-1": "data-change-mode",
    "10-2": "mwActiveChangeMode",
    "10-3": "history",
    "10-4": "no",
    "10-5": "history, redirect, `NULL`",
    "10-6": "When a user changes locale (or when we automatically detect and change it for them), we will change the URL of the page they are in. We can do this by actually redirecting the user to the new page, or by simply changing the URL in the address bar via browser's History API. When `NULL`, we won't apply any URL changes.",
    "11-0": "Locale URL Mode",
    "11-1": "data-url-mode",
    "11-2": "mwActiveUrlMode",
    "11-3": "path",
    "11-4": "no",
    "11-5": "path, query, `NULL`",
    "11-6": "When a user changes locale (or when we automatically detect and change it for them), we will change the URL of the page they are in. We can either change the path of the URL to prefix it with the locale code, or we can add a query parameter to the URL. We also use this mode to detect the locale for the current page when a user directly loads a page. When `NULL`, locale detection from URL will be disabled (even then, if the user has selected a locale manually, and `followUser` is enabled, we will still automatically translate the page in user's locale.",
    "12-0": "Modify Links",
    "12-1": "data-modify-links",
    "12-2": "mwActiveModifyLinks",
    "12-3": "true",
    "12-4": "no",
    "12-5": "\"false\", \"no\", \"0\", true\", \"yes\", \"1\"",
    "12-6": "We can automatically localize the same-domain URLs in your page. The way we localize the URL depends on `urlMode` configuration. We can either add/update the locale query parameter, or add/update the path of the URL.",
    "13-0": "Query Parameter Name",
    "13-1": "data-query-name",
    "13-2": "mwActiveQueryName",
    "13-3": "locale",
    "13-4": "no",
    "13-5": "any string value",
    "13-6": "When `urlMode` is `query`, we will use this query parameter name in the URL,   to detect the requested locale to update the URL when user changes locale to modify the links on page when `modifyLinks` is enabled.",
    "14-0": "Wait For DOM",
    "14-1": "data-wait-for-dom",
    "14-2": "mwActiveWaitForDom",
    "14-3": "mixed",
    "14-4": "no",
    "14-5": "\"false\", \"no\", \"0\", true\", \"yes\", \"1\"",
    "14-6": "Should we wait until the DOM is ready to translate the content? When you put ActiveJS script inside `<head>` tag, we will automatically make this `true` unless you explicitly specify otherwise. When ActiveJS script is used within `<body>`, this is `false` by default."
  },
  "cols": 7,
  "rows": 15
}
[/block]