@livinglogic/livingapi 1.34.0 → 1.36.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/CHANGELOG.md +24 -0
- package/README.md +2 -2
- package/dist/esm-node/livingapi.js +1 -1
- package/dist/esm-node/livingapi.js.map +1 -1
- package/dist/esm-npm/livingapi.js +1 -1
- package/dist/esm-npm/livingapi.js.map +1 -1
- package/dist/esm-static/livingapi.js +1 -1
- package/dist/esm-static/livingapi.js.map +1 -1
- package/dist/umd/livingapi.js +1 -1
- package/dist/umd/livingapi.js.map +1 -1
- package/package.json +1 -1
- package/src/livingapi.js +88 -30
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 1.36.0 (unreleased)
|
|
4
|
+
|
|
5
|
+
`AppLang.typenames` is no longer read-only: It can be set from UL4 (to a dict
|
|
6
|
+
or `None`) like the other attributes of the translation objects. A new
|
|
7
|
+
translation object (e.g. created via `app.translations.en`) now starts with
|
|
8
|
+
an empty dict as `typenames` instead of `None`. This mirrors the changes in
|
|
9
|
+
the Java LivingAPI.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## 1.35.0 (2026-08-28)
|
|
13
|
+
|
|
14
|
+
The eight `typename_*` attributes of `AppLang` have been replaced by the
|
|
15
|
+
new read-only attribute `typenames`: a map that maps noun form identifiers
|
|
16
|
+
(e.g. `nom_sin` for nominative singular) to the type name in that form.
|
|
17
|
+
This supports arbitrary per-language forms instead of the fixed eight German
|
|
18
|
+
forms. The `typename_*` attributes of the `App` itself are unchanged
|
|
19
|
+
(they hold the system language version); their getters now take the `typenames`
|
|
20
|
+
map of the translation for the current language into account.
|
|
21
|
+
|
|
22
|
+
`App` has a new read-only attribute `typenames` that mirrors the `typenames`
|
|
23
|
+
map of the translation for the current language (`globals.lang`), falling
|
|
24
|
+
back to the noun forms for the system language.
|
|
25
|
+
|
|
26
|
+
|
|
3
27
|
## 1.34.0 (2026-08-19)
|
|
4
28
|
|
|
5
29
|
Added support for the translations of the multilingual attributes of apps,
|
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ do
|
|
|
40
40
|
|
|
41
41
|
```html
|
|
42
42
|
<script type="module">
|
|
43
|
-
import * as la from '/npm/@livinglogic/livingapi@1.
|
|
43
|
+
import * as la from '/npm/@livinglogic/livingapi@1.36.0/dist/esm-npm/livingapi.js';
|
|
44
44
|
...
|
|
45
45
|
</script>
|
|
46
46
|
```
|
|
@@ -50,7 +50,7 @@ or (if you need both UL4 and LivingAPI):
|
|
|
50
50
|
```html
|
|
51
51
|
<script type="module">
|
|
52
52
|
import * as ul4 from '/npm/@livinglogic/ul4@1.19.0/dist/esm/ul4.js';
|
|
53
|
-
import * as la from '/npm/@livinglogic/livingapi@1.
|
|
53
|
+
import * as la from '/npm/@livinglogic/livingapi@1.36.0/dist/esm-npm/livingapi.js';
|
|
54
54
|
...
|
|
55
55
|
</script>
|
|
56
56
|
```
|