@gjsify/adwaita-app 0.64.12 → 0.64.13
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 @@
|
|
|
1
|
+
import"./_virtual/_rolldown/runtime.js";import e from"gettext";function application(){return com?.tns?.NativeScriptApplication?.getInstance()??null}function localeDir(){let e=application()?.getFilesDir()?.getPath();return e===void 0?void 0:`${e}/app/locale`}function initLocale(t,n={}){let r=n.localeDir??localeDir();return r!==void 0&&e.bindtextdomain(t,r),e.textdomain(t),Object.assign(n=>e.dgettext(t,n),{plural:(n,r,i)=>e.dngettext(t,n,r,i),context:(n,r)=>e.dpgettext(t,n,r),localeDir:r,domain:t})}export{initLocale,localeDir};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InitLocaleOptions, Translator } from './locale.js';
|
|
2
|
+
/** Where the build stages the catalogues: `<filesDir>/app/locale`, or `undefined` before the Application exists. */
|
|
3
|
+
export declare function localeDir(): string | undefined;
|
|
4
|
+
export type { InitLocaleOptions, Translator };
|
|
5
|
+
export declare function initLocale(domain: string, options?: InitLocaleOptions): Translator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/adwaita-app",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.13",
|
|
4
4
|
"description": "Native Adwaita application shell for GJS/GTK apps — Adw.Application lifecycle (runAsync + devtools + CSS), a data-driven NavigationSplitView nav shell, an async-view mounter, promise dialog/toast/file helpers, and a display-less reader of the desktop accent and colour scheme (`./appearance`)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
"types": "./lib/types/index.d.ts",
|
|
11
11
|
"default": "./lib/esm/index.js"
|
|
12
12
|
},
|
|
13
|
+
"./locale": {
|
|
14
|
+
"types": "./lib/types/locale.d.ts",
|
|
15
|
+
"nativescript": "./lib/esm/locale-nativescript.js",
|
|
16
|
+
"default": "./lib/esm/locale.js"
|
|
17
|
+
},
|
|
13
18
|
"./appearance": {
|
|
14
19
|
"types": "./lib/types/appearance/index.d.ts",
|
|
15
20
|
"default": "./lib/esm/appearance/index.js"
|
|
@@ -57,14 +62,14 @@
|
|
|
57
62
|
"@girs/glib-2.0": "5.4.0",
|
|
58
63
|
"@girs/gobject-2.0": "5.4.0",
|
|
59
64
|
"@girs/gtk-4.0": "5.4.0",
|
|
60
|
-
"@gjsify/adwaita-core": "^0.64.
|
|
61
|
-
"@gjsify/devtools": "^0.64.
|
|
62
|
-
"@gjsify/utils": "^0.64.
|
|
65
|
+
"@gjsify/adwaita-core": "^0.64.13",
|
|
66
|
+
"@gjsify/devtools": "^0.64.13",
|
|
67
|
+
"@gjsify/utils": "^0.64.13"
|
|
63
68
|
},
|
|
64
69
|
"devDependencies": {
|
|
65
|
-
"@gjsify/cli": "^0.64.
|
|
66
|
-
"@gjsify/storybook": "^0.64.
|
|
67
|
-
"@gjsify/unit": "^0.64.
|
|
70
|
+
"@gjsify/cli": "^0.64.13",
|
|
71
|
+
"@gjsify/storybook": "^0.64.13",
|
|
72
|
+
"@gjsify/unit": "^0.64.13",
|
|
68
73
|
"@types/node": "^25.9.2",
|
|
69
74
|
"typescript": "^6.0.3"
|
|
70
75
|
},
|
|
@@ -75,6 +80,14 @@
|
|
|
75
80
|
"browser": "none",
|
|
76
81
|
"nativescript": "none"
|
|
77
82
|
},
|
|
83
|
+
"runtimeSubpaths": {
|
|
84
|
+
"./locale": {
|
|
85
|
+
"gjs": "polyfill",
|
|
86
|
+
"node": "none",
|
|
87
|
+
"browser": "none",
|
|
88
|
+
"nativescript": "partial"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
78
91
|
"tier": 2,
|
|
79
92
|
"os": {
|
|
80
93
|
"linux": "supported",
|