@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.
- package/dist/platform/sdk.d.ts +9 -0
- package/package.json +1 -1
package/dist/platform/sdk.d.ts
CHANGED
|
@@ -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: {
|