@livinglogic/livingapi 1.33.0 → 1.34.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 +23 -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 +663 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 1.34.0 (2026-08-19)
|
|
4
|
+
|
|
5
|
+
Added support for the translations of the multilingual attributes of apps,
|
|
6
|
+
app groups, controls and lookup items via the new classes `AppLang`,
|
|
7
|
+
`AppGroupLang`, `ControlLang` and `LookupItemLang`.
|
|
8
|
+
|
|
9
|
+
The multilingual attributes themselves (e.g. `control.label`) remain plain
|
|
10
|
+
strings: their getters now return the translation matching `globals.lang`.
|
|
11
|
+
A label from the active view still wins over the translation, and when
|
|
12
|
+
there's no translation (or the translated attribute is `None`) the attribute
|
|
13
|
+
of the object itself is used.
|
|
14
|
+
|
|
15
|
+
All translations are accessible (and modifiable) in UL4 via the new
|
|
16
|
+
attribute `translations` whose attributes are the language codes (the
|
|
17
|
+
language attributes are available in Javascript too, e.g.
|
|
18
|
+
`control.translations.de`). Accessing a known language for which no
|
|
19
|
+
translations exist yet creates a new empty translation object. Note that (as with all other LivingAPI objects) changes
|
|
20
|
+
to translation objects can not be saved back to the database.
|
|
21
|
+
|
|
22
|
+
Setting e.g. `control.label` still sets the attribute of the control itself
|
|
23
|
+
and never touches the translations.
|
|
24
|
+
|
|
25
|
+
|
|
3
26
|
## 1.33.0 (2025-06-24)
|
|
4
27
|
|
|
5
28
|
Added the `App` attribute `order`.
|
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.34.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.34.0/dist/esm-npm/livingapi.js';
|
|
54
54
|
...
|
|
55
55
|
</script>
|
|
56
56
|
```
|