@localess/js-client 0.0.4 → 0.0.5-next.20240528-194332.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/README.md +14 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -32,13 +32,20 @@ yarn add @localess/js-client@latest
|
|
|
32
32
|
import {localessClient} from "@localess/js-client";
|
|
33
33
|
|
|
34
34
|
const llClient = localessClient({
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
// A fully qualified domain name with protocol (http/https) and port.
|
|
36
|
+
origin: 'https://my-localess.web.app',
|
|
37
|
+
// Localess space ID, cna be found in the Localess Space settings
|
|
38
|
+
spaceId: 'I1LoVe2LocaLess4Rever',
|
|
39
|
+
// Localess API token, can be found in the Localess Space settings
|
|
40
|
+
token: 'Baz00KaT0KeN8S3CureLL'
|
|
38
41
|
});
|
|
39
42
|
|
|
40
|
-
|
|
41
|
-
llClient.
|
|
42
|
-
|
|
43
|
-
llClient.
|
|
43
|
+
// Fetch all Content Links
|
|
44
|
+
llClient.getLinks()
|
|
45
|
+
// Fetch content by SLUG
|
|
46
|
+
llClient.getContentBySlug('docs/overview')
|
|
47
|
+
// Fetch content by ID
|
|
48
|
+
llClient.getContentById('FRnIT7CUABoRCdSVVGGs')
|
|
49
|
+
// Fetch translations by locale
|
|
50
|
+
llClient.getTranslations('en')
|
|
44
51
|
````
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localess/js-client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5-next.20240528-194332.0",
|
|
4
4
|
"description": "Universal JavaScript/TypeScript SDK for Localess's API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"localess",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"typescript"
|
|
12
12
|
],
|
|
13
13
|
"author": "Lessify",
|
|
14
|
-
"homepage": "https://localess
|
|
14
|
+
"homepage": "https://github.com/Lessify/localess-js-client",
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|