@opencxh/domain 1.134.11 → 1.134.14

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.
@@ -38,6 +38,15 @@ export interface InternalSDK<LocalServices extends ServiceMap = {}, TranslationK
38
38
  * te tonen die een andere app meestuurde bij iets wat wij renderen.
39
39
  */
40
40
  t(key: TranslationKeys | `${string}:${string}`, params?: Record<string, any>): string;
41
+ /**
42
+ * De actieve taal ("nl" | "en").
43
+ *
44
+ * Nodig zodra een app zélf iets moet opmaken in plaats van een sleutel op te
45
+ * zoeken: `Intl.ListFormat` voor een opsomming, `toLocaleTimeString` voor een
46
+ * tijd. Zonder dit viel dat terug op `navigator.language`, die niet meebeweegt
47
+ * als de gebruiker de taal in de app omzet.
48
+ */
49
+ readonly currentLocale: string;
41
50
  };
42
51
  readonly ui: {
43
52
  modals: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.134.11",
3
+ "version": "1.134.14",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",