@fluid-topics/ft-app-context 1.1.104 → 1.1.106
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.
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface FluidTopicsLocaleService {
|
|
2
|
+
getUiLocale(): string;
|
|
3
|
+
getContentLocale(): string | null;
|
|
4
|
+
setUiLocale(locale: string): void;
|
|
5
|
+
setContentLocale(locale?: string): void;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
interface Window {
|
|
9
|
+
FluidTopicsLocaleService: FluidTopicsLocaleService;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class FtWebappLocaleService {
|
|
13
|
+
static getUiLocale(): string;
|
|
14
|
+
static getContentLocale(): string | null;
|
|
15
|
+
static setUiLocale(locale: string): void;
|
|
16
|
+
static setContentLocale(locale?: string): void;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class FtWebappLocaleService {
|
|
2
|
+
static getUiLocale() {
|
|
3
|
+
return window.FluidTopicsLocaleService.getUiLocale();
|
|
4
|
+
}
|
|
5
|
+
static getContentLocale() {
|
|
6
|
+
return window.FluidTopicsLocaleService.getContentLocale();
|
|
7
|
+
}
|
|
8
|
+
static setUiLocale(locale) {
|
|
9
|
+
window.FluidTopicsLocaleService.setUiLocale(locale);
|
|
10
|
+
}
|
|
11
|
+
static setContentLocale(locale) {
|
|
12
|
+
window.FluidTopicsLocaleService.setContentLocale(locale);
|
|
13
|
+
}
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-app-context",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.106",
|
|
4
4
|
"description": "Global application context for Fluid Topics integrations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.1.106",
|
|
23
23
|
"lit": "3.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@fluid-topics/public-api": "1.0.
|
|
26
|
+
"@fluid-topics/public-api": "1.0.75"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "b03c232485cbcc99f64a7ad3aa2da39a0fa9f9ba"
|
|
29
29
|
}
|