@useago/sdk 1.13.3 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/angular.cjs +1 -1
- package/dist/angular.d.cts +7 -0
- package/dist/angular.d.ts +7 -0
- package/dist/angular.js +1 -1
- package/dist/{createConversationSession-DrmOaZdO.js → createConversationSession-CybQdMpK.js} +1 -1
- package/dist/{createConversationSession-Digvn0GQ.cjs → createConversationSession-jwSXhTLe.cjs} +1 -1
- package/dist/{createFormCollector-D_5SDuk9.cjs → createFormCollector-B_hSKcLd.cjs} +1 -1
- package/dist/{createFormCollector-D6_N8wYq.js → createFormCollector-DJjms78E.js} +1 -1
- package/dist/devtools.d.cts +7 -0
- package/dist/devtools.d.ts +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +6 -6
- package/dist/react.cjs +4 -4
- package/dist/react.d.cts +8 -1
- package/dist/react.d.ts +8 -1
- package/dist/react.js +901 -912
- package/dist/speechToText-BB25_zVM.cjs +7 -0
- package/dist/speechToText-BLvTis4S.js +1496 -0
- package/dist/testing.d.cts +7 -0
- package/dist/testing.d.ts +7 -0
- package/dist/{types-D1ZrqVhr.js → types-C39MJUE3.js} +284 -259
- package/dist/{types-DNr6XEwI.cjs → types-PGXnhAmQ.cjs} +7 -7
- package/dist/vue.cjs +1 -1
- package/dist/vue.d.cts +7 -0
- package/dist/vue.d.ts +7 -0
- package/dist/vue.js +1 -1
- package/dist/widget.cjs +6 -6
- package/dist/widget.d.cts +12 -4
- package/dist/widget.d.ts +12 -4
- package/dist/widget.js +1918 -1867
- package/llms-full.txt +23 -3
- package/package.json +1 -1
- package/dist/speechToText-BV7qxqPF.js +0 -704
- package/dist/speechToText-ZciRyyJE.cjs +0 -1
package/llms-full.txt
CHANGED
|
@@ -2404,6 +2404,25 @@ interface AgoConfig {
|
|
|
2404
2404
|
|
|
2405
2405
|
---
|
|
2406
2406
|
|
|
2407
|
+
## Ticket-form language
|
|
2408
|
+
|
|
2409
|
+
```ts
|
|
2410
|
+
import { AgoClient } from '@useago/sdk';
|
|
2411
|
+
|
|
2412
|
+
const client = new AgoClient({
|
|
2413
|
+
baseUrl: 'https://playground.api.useago.com',
|
|
2414
|
+
language: 'fr',
|
|
2415
|
+
});
|
|
2416
|
+
const config = await client.getConfig();
|
|
2417
|
+
client.updateConfig({ language: 'pt-PT' });
|
|
2418
|
+
```
|
|
2419
|
+
|
|
2420
|
+
The SDK includes English, French, German, Spanish, Italian and Brazilian Portuguese UI wording. Regional tags use the corresponding base-language UI. Omitted, `null` or unsupported languages use English; `undefined` leaves the current setting unchanged.
|
|
2421
|
+
|
|
2422
|
+
`getConfig()` requests translated form content with `ticket_form_i18n=1` and `language`. Supported regional tags are preserved. Each string tries the exact locale, base language, preferred region (`en-GB`, `fr-FR` or `pt-PT`), then other matching regions alphabetically. It repeats that sequence for the tenant default before using the original text. Translated labels do not change submitted values.
|
|
2423
|
+
|
|
2424
|
+
Change language with `updateConfig()`. SDK UI components preserve drafts, attachments and submission state while loading translated forms; a failed switch keeps the previous wording. Headless integrations must call `getConfig()` again and update their own UI. Explicit wording overrides remain in effect.
|
|
2425
|
+
|
|
2407
2426
|
## Debug logging
|
|
2408
2427
|
|
|
2409
2428
|
`debug: true` turns on the SDK's internal logger. While enabled, the client
|
|
@@ -2556,9 +2575,10 @@ const sources = conversation.messages?.flatMap((message) => message.sources ?? [
|
|
|
2556
2575
|
`createAgo({ language: "fr" })` also accepts an explicit locale when your API
|
|
2557
2576
|
configuration is detected from the page.
|
|
2558
2577
|
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2578
|
+
The language setting also selects the SDK's standard UI wording, as described in
|
|
2579
|
+
[ticket-form language](#ticket-form-language). It does not force the agent's reply
|
|
2580
|
+
language. Host-authored welcome text and explicit label overrides remain your
|
|
2581
|
+
application's responsibility.
|
|
2562
2582
|
|
|
2563
2583
|
### User and ticket metadata
|
|
2564
2584
|
|
package/package.json
CHANGED