@operato/i18n 8.0.0-beta.1 → 8.0.0-beta.2

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 CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [8.0.0-beta.2](https://github.com/hatiolab/operato/compare/v8.0.0-beta.1...v8.0.0-beta.2) (2025-01-08)
7
+
8
+
9
+ ### :bug: Bug Fix
10
+
11
+ * typo .npmignore ([d9c0c8c](https://github.com/hatiolab/operato/commit/d9c0c8c79abc688c3c2cfb6c37fcb689483a5977))
12
+
13
+
14
+
6
15
  ## [8.0.0-beta.1](https://github.com/hatiolab/operato/compare/v8.0.0-beta.0...v8.0.0-beta.1) (2025-01-08)
7
16
 
8
17
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/i18n",
3
3
  "description": "Webcomponent i18n following open-wc recommendations",
4
4
  "author": "heartyoh",
5
- "version": "8.0.0-beta.1",
5
+ "version": "8.0.0-beta.2",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.js",
8
8
  "exports": {
@@ -90,5 +90,5 @@
90
90
  "prettier --write"
91
91
  ]
92
92
  },
93
- "gitHead": "d5b28a2e9deb632c0dc80132f6a7196dd6fe4220"
93
+ "gitHead": "ee1b5124995accb99272d3b5854f3df1d8746dda"
94
94
  }
package/demo/index.html DELETED
@@ -1,73 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en-GB">
3
- <head>
4
- <meta charset="utf-8" />
5
- <base href="/demo/" />
6
-
7
- <style>
8
- body {
9
- background: #fafafa;
10
- }
11
-
12
- #demo {
13
- position: relative;
14
- height: 100px;
15
- background-color: lightgray;
16
- text-align: center;
17
- vertical-align: middle;
18
- }
19
- </style>
20
- </head>
21
- <body>
22
- <div id="demo"></div>
23
-
24
- <script type="module">
25
- import { html, render } from 'lit'
26
- import { i18next } from '../dist/src/config.js'
27
- import '../dist/src/ox-i18n.js'
28
- import '../dist/src/ox-i18n-selector.js'
29
-
30
- const languages = [
31
- {
32
- code: 'en',
33
- display: 'English'
34
- },
35
- {
36
- code: 'ko',
37
- display: '한국어'
38
- },
39
- {
40
- code: 'zh',
41
- display: '中文'
42
- },
43
- {
44
- code: 'ja',
45
- display: 'にほんご'
46
- },
47
- {
48
- code: 'ms',
49
- display: 'Bahasa Malaysia'
50
- }
51
- ]
52
-
53
- const parent = document.querySelector('#demo')
54
-
55
- render(
56
- html`
57
- Translated :
58
- <ox-i18n msgid="text.operato"></ox-i18n>
59
- <ox-i18n-selector
60
- .value=${i18next.language || 'en-US'}
61
- .languages=${languages}
62
- @change=${e => {
63
- var locale = e.detail
64
- locale && i18next.changeLanguage(locale)
65
- }}
66
- >
67
- </ox-i18n-selector>
68
- `,
69
- parent
70
- )
71
- </script>
72
- </body>
73
- </html>