@sevenfold/setto-client 0.16.0 → 0.17.0
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/dist/LanguageSwitcher.d.ts +40 -0
- package/dist/index.d.ts +2 -0
- package/dist/lib/languages.d.ts +43 -0
- package/dist/setto-client.js +251 -2
- package/dist/setto-client.js.map +1 -1
- package/dist/types.d.ts +8 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -17,6 +17,14 @@ export interface SettoConfig {
|
|
|
17
17
|
displayName?: string;
|
|
18
18
|
/** Base URL of setto-server, e.g. 'https://api.setto.no'. */
|
|
19
19
|
apiUrl: string;
|
|
20
|
+
/**
|
|
21
|
+
* Every language this site speaks, from `setto.config.json`.
|
|
22
|
+
*
|
|
23
|
+
* The primary one is first and is the language the agent writes; the rest
|
|
24
|
+
* are translations of it. One language — the state of every Setto site until
|
|
25
|
+
* now — means no switcher is rendered and nothing changes.
|
|
26
|
+
*/
|
|
27
|
+
languages?: string[];
|
|
20
28
|
/** Supabase project credentials. */
|
|
21
29
|
supabase: {
|
|
22
30
|
url: string;
|