@nuralogix.ai/web-measurement-embedded-app 0.1.0-alpha.1 → 0.1.0-alpha.3

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 CHANGED
@@ -1,5 +1,7 @@
1
1
  ### Web Measurement Embedded App
2
2
 
3
+
4
+
3
5
  ```html
4
6
  <!DOCTYPE html>
5
7
  <html lang="en">
@@ -10,7 +12,7 @@
10
12
  <script type="importmap">
11
13
  {
12
14
  "imports": {
13
- "@nuralogix.ai/web-measurement-embedded-app": "https://unpkg.com/@nuralogix.ai/web-measurement-embedded-app",
15
+ "@nuralogix.ai/web-measurement-embedded-app": "https://unpkg.com/@nuralogix.ai/web-measurement-embedded-app"
14
16
  }
15
17
  }
16
18
  </script>
@@ -31,7 +33,8 @@
31
33
  measurementApp.init({
32
34
  container,
33
35
  top: '100px',
34
- appPath: '.',
36
+ appPath: 'https://unpkg.com/@nuralogix.ai/web-measurement-embedded-app/dist',
37
+ language: 'fr', // optional
35
38
  settings: {
36
39
  token: tokenResponse.token,
37
40
  refreshToken: tokenResponse.refreshToken,
@@ -71,4 +74,14 @@
71
74
  </script>
72
75
  </body>
73
76
  </html>
74
- ```
77
+ ```
78
+
79
+ **Notes:**
80
+
81
+ - If you are bundling `Web Measurement Embedded App` with your app, set `appPath` to `'.'`.
82
+
83
+ - `language` prop is optional. You can either set it to `en` or `fr`
84
+ - If a supported language is set, the app loads with a supported language.
85
+ - If the language prop is not set, the app checks the browser's language and if it is among
86
+ the list of supported languages, it loads the language pack for the browser's language.
87
+ Otherwise falls back to `en`.