@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.
Files changed (2) hide show
  1. package/README.md +14 -7
  2. 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
- origin: 'https://my-localess.web.app', // A fully qualified domain name with protocol (http/https) and port.
36
- spaceId: 'I1LoVe2LocaLess4Rever', // Localess space ID, cna be found in the Localess Space settings
37
- token: 'Baz00KaT0KeN8S3CureLL' // Localess API token, can be found in the Localess Space settings
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
- llClient.getLinks() // Fetch all Content Links
41
- llClient.getContentBySlug('docs/overview') // Fetch content by SLUG
42
- llClient.getContentById('FRnIT7CUABoRCdSVVGGs') // Fetch content by ID
43
- llClient.getTranslations('en') // Fetch translations by locale
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.4",
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.org",
14
+ "homepage": "https://github.com/Lessify/localess-js-client",
15
15
  "sideEffects": false,
16
16
  "files": [
17
17
  "dist"