@livinglogic/livingapi 1.36.0 → 1.38.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 CHANGED
@@ -1,6 +1,27 @@
1
1
  # Changes
2
2
 
3
- ## 1.36.0 (unreleased)
3
+ ## 1.38.0
4
+
5
+ `Globals` has a new read-only attribute `sys_lang` that contains the system
6
+ language (e.g. `de` or `en`), i.e. the fallback language that is used when
7
+ no translation for `globals.lang` exists.
8
+
9
+
10
+ ## 1.37.0
11
+
12
+ `App` has a new method `typename(form)` that returns the type name in the
13
+ noun form `form` (e.g. `nom_sin` for nominative singular) for the current
14
+ language: the form from `translations[globals.lang]` wins, then the form from
15
+ the translation for the system language `app.lang`, then the (German) form
16
+ stored in the app itself. If none of them has the form `None` is returned.
17
+ The read-only attribute `App.typenames` (added in 1.35.0) has been removed
18
+ again.
19
+
20
+ The eight `typename_*` attributes of `App` use the same lookup as
21
+ `typename()`. This mirrors the changes in the Java and Python LivingAPI.
22
+
23
+
24
+ ## 1.36.0 (2026-09-16)
4
25
 
5
26
  `AppLang.typenames` is no longer read-only: It can be set from UL4 (to a dict
6
27
  or `None`) like the other attributes of the translation objects. A new
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.36.0/dist/esm-npm/livingapi.js';
43
+ import * as la from '/npm/@livinglogic/livingapi@1.38.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.36.0/dist/esm-npm/livingapi.js';
53
+ import * as la from '/npm/@livinglogic/livingapi@1.38.0/dist/esm-npm/livingapi.js';
54
54
  ...
55
55
  </script>
56
56
  ```