JavaScript guide
<script
async
src="https://app.globalizationos.com/widget/v1/loader.js"
data-gos-project="YOUR_PROJECT_ID"
data-integration-id="YOUR_PROJECT_ID"
data-key-id="YOUR_KEY_ID"
data-default-locale="en"
data-target-locales="en,de,fr"
data-gos-selector="auto"
></script>
- Load asynchronously; selector mounts after config fetch.
- Visible text is discovered automatically. Use data-gos-ignore to exclude a subtree. Strict opt-in data-gos-translate mode remains available for advanced cases.
- The widget watches dynamic/SPA content automatically. GOSWidget.refresh() is available when your application needs an explicit refresh.
- Optional mount: data-gos-mount="#nav-language".