@koine/i18n 2.0.0-beta.76 → 2.0.0-beta.78
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/README.md +1 -0
- package/api.cjs.js +2203 -0
- package/api.esm.js +2179 -0
- package/compiler-sync.cjs.d.ts +1 -0
- package/compiler-sync.cjs.default.js +1 -0
- package/compiler-sync.cjs.js +20 -0
- package/compiler-sync.cjs.mjs +2 -0
- package/compiler-sync.esm.js +16 -0
- package/compiler-worker.cjs.d.ts +1 -0
- package/compiler-worker.cjs.default.js +1 -0
- package/compiler-worker.cjs.js +18 -0
- package/compiler-worker.cjs.mjs +2 -0
- package/compiler-worker.esm.js +16 -0
- package/compiler.cjs.d.ts +1 -0
- package/compiler.cjs.default.js +1 -0
- package/compiler.cjs.js +21 -0
- package/compiler.cjs.mjs +2 -0
- package/compiler.esm.js +13 -0
- package/formatRoutePathname.cjs.js +12 -0
- package/formatRoutePathname.esm.js +10 -0
- package/index.cjs.d.ts +1 -0
- package/index.cjs.default.js +1 -0
- package/index.cjs.js +47 -0
- package/index.cjs.mjs +2 -0
- package/index.esm.js +42 -0
- package/next.cjs.d.ts +1 -0
- package/next.cjs.default.js +1 -0
- package/next.cjs.js +377 -0
- package/next.cjs.mjs +2 -0
- package/next.esm.js +353 -0
- package/package.json +22 -305
- package/actions/helpers-git.js +0 -45
- package/actions/helpers-i18n.js +0 -27
- package/actions/i18n.js +0 -17
- package/adapter-js/code/config.cjs.js +0 -14
- package/adapter-js/code/config.js +0 -14
- package/adapter-js/code/defaultLocale.js +0 -7
- package/adapter-js/code/deriveLocalisedPathnames.js +0 -78
- package/adapter-js/code/index.js +0 -123
- package/adapter-js/code/isLocale.js +0 -9
- package/adapter-js/code/locales.js +0 -8
- package/adapter-js/code/pathnameToRouteId.js +0 -20
- package/adapter-js/code/routes.js +0 -11
- package/adapter-js/code/routesSlim.js +0 -11
- package/adapter-js/code/routesSpa.js +0 -11
- package/adapter-js/code/tFns.js +0 -34
- package/adapter-js/code/tInterpolateParams.js +0 -18
- package/adapter-js/code/tPluralise.js +0 -10
- package/adapter-js/code/to.js +0 -32
- package/adapter-js/code/toFns.js +0 -25
- package/adapter-js/code/toFormat.js +0 -56
- package/adapter-js/code/toSpa.js +0 -42
- package/adapter-js/code/types.js +0 -327
- package/adapter-next/code/index.js +0 -54
- package/adapter-next/code/next-redirects.js +0 -5
- package/adapter-next/code/next-rewrites.js +0 -5
- package/adapter-next/code/useCurrentLocalisedPathnames.js +0 -20
- package/adapter-next/code/useLocale.js +0 -8
- package/adapter-next/code/useRouteId.js +0 -10
- package/adapter-next/code/useTo.js +0 -26
- package/adapter-next/code/useToSpa.js +0 -34
- package/adapter-next/plugin-async.js +0 -11
- package/adapter-next/plugin-legacy.js +0 -187
- package/adapter-next/plugin-shared.js +0 -39
- package/adapter-next/plugin.js +0 -13
- package/adapter-next/redirects.js +0 -51
- package/adapter-next/rewrites.js +0 -50
- package/adapter-next/transformPathname.js +0 -3
- package/adapter-next/webpackPluginI18n.js +0 -11
- package/adapter-next-translate/code/DynamicNamespaces.js +0 -9
- package/adapter-next-translate/code/T.js +0 -31
- package/adapter-next-translate/code/TransText.js +0 -9
- package/adapter-next-translate/code/getT.js +0 -15
- package/adapter-next-translate/code/index.js +0 -49
- package/adapter-next-translate/code/nextTranslateI18n.js +0 -19
- package/adapter-next-translate/code/useT.js +0 -43
- package/cjs/adapter-js/code/config.cjs.d.ts +0 -3
- package/cjs/adapter-js/code/config.d.ts +0 -3
- package/cjs/adapter-js/code/defaultLocale.d.ts +0 -3
- package/cjs/adapter-js/code/deriveLocalisedPathnames.d.ts +0 -2
- package/cjs/adapter-js/code/index.d.ts +0 -3
- package/cjs/adapter-js/code/isLocale.d.ts +0 -2
- package/cjs/adapter-js/code/locales.d.ts +0 -3
- package/cjs/adapter-js/code/pathnameToRouteId.d.ts +0 -3
- package/cjs/adapter-js/code/routes.d.ts +0 -3
- package/cjs/adapter-js/code/routesSlim.d.ts +0 -3
- package/cjs/adapter-js/code/routesSpa.d.ts +0 -3
- package/cjs/adapter-js/code/tFns.d.ts +0 -3
- package/cjs/adapter-js/code/tInterpolateParams.d.ts +0 -3
- package/cjs/adapter-js/code/tPluralise.d.ts +0 -2
- package/cjs/adapter-js/code/to.d.ts +0 -3
- package/cjs/adapter-js/code/toFns.d.ts +0 -3
- package/cjs/adapter-js/code/toFormat.d.ts +0 -3
- package/cjs/adapter-js/code/toSpa.d.ts +0 -3
- package/cjs/adapter-js/code/types.d.ts +0 -3
- package/cjs/adapter-next/code/index.d.ts +0 -3
- package/cjs/adapter-next/code/next-redirects.d.ts +0 -3
- package/cjs/adapter-next/code/next-rewrites.d.ts +0 -3
- package/cjs/adapter-next/code/useCurrentLocalisedPathnames.d.ts +0 -2
- package/cjs/adapter-next/code/useLocale.d.ts +0 -3
- package/cjs/adapter-next/code/useRouteId.d.ts +0 -2
- package/cjs/adapter-next/code/useTo.d.ts +0 -2
- package/cjs/adapter-next/code/useToSpa.d.ts +0 -2
- package/cjs/adapter-next/plugin-async.d.ts +0 -9
- package/cjs/adapter-next/plugin-legacy.d.ts +0 -22
- package/cjs/adapter-next/plugin-shared.d.ts +0 -13
- package/cjs/adapter-next/plugin.d.ts +0 -7
- package/cjs/adapter-next/redirects.d.ts +0 -4
- package/cjs/adapter-next/rewrites.d.ts +0 -4
- package/cjs/adapter-next/transformPathname.d.ts +0 -1
- package/cjs/adapter-next/webpackPluginI18n.d.ts +0 -7
- package/cjs/adapter-next-translate/code/DynamicNamespaces.d.ts +0 -2
- package/cjs/adapter-next-translate/code/T.d.ts +0 -2
- package/cjs/adapter-next-translate/code/TransText.d.ts +0 -2
- package/cjs/adapter-next-translate/code/getT.d.ts +0 -2
- package/cjs/adapter-next-translate/code/index.d.ts +0 -3
- package/cjs/adapter-next-translate/code/nextTranslateI18n.d.ts +0 -3
- package/cjs/adapter-next-translate/code/useT.d.ts +0 -2
- package/cjs/client/formatRoutePathname.d.ts +0 -4
- package/cjs/client/index.d.ts +0 -3
- package/cjs/client/interpolateTo.d.ts +0 -4
- package/cjs/client/routeHasDynamicPortion.d.ts +0 -2
- package/cjs/compiler/api.d.ts +0 -30
- package/cjs/compiler/code/data-routes.d.ts +0 -19
- package/cjs/compiler/code/data-translations.d.ts +0 -13
- package/cjs/compiler/code/data.d.ts +0 -33
- package/cjs/compiler/code/generate.d.ts +0 -14
- package/cjs/compiler/code/index.d.ts +0 -3
- package/cjs/compiler/code/tsCompile.d.ts +0 -2
- package/cjs/compiler/code/write.d.ts +0 -11
- package/cjs/compiler/config.d.ts +0 -12
- package/cjs/compiler/helpers.d.ts +0 -2
- package/cjs/compiler/input/data-local.d.ts +0 -4
- package/cjs/compiler/input/data-remote.d.ts +0 -7
- package/cjs/compiler/input/data.d.ts +0 -4
- package/cjs/compiler/input/index.d.ts +0 -4
- package/cjs/compiler/input/types.d.ts +0 -14
- package/cjs/compiler/input/write.d.ts +0 -8
- package/cjs/compiler/pluralisation.d.ts +0 -37
- package/cjs/compiler/summary/data.d.ts +0 -6
- package/cjs/compiler/summary/generate.d.ts +0 -4
- package/cjs/compiler/summary/index.d.ts +0 -3
- package/cjs/compiler/summary/write.d.ts +0 -10
- package/cjs/compiler/types.d.ts +0 -82
- package/cjs/compiler-sync.d.ts +0 -4
- package/cjs/compiler-worker.d.ts +0 -1
- package/cjs/compiler.d.ts +0 -2
- package/cjs/i18n/actions/helpers-git.js +0 -45
- package/cjs/i18n/actions/helpers-i18n.js +0 -27
- package/cjs/i18n/actions/i18n.js +0 -17
- package/cjs/i18n/adapter-js/code/config.cjs.js +0 -14
- package/cjs/i18n/adapter-js/code/config.js +0 -14
- package/cjs/i18n/adapter-js/code/defaultLocale.js +0 -7
- package/cjs/i18n/adapter-js/code/deriveLocalisedPathnames.js +0 -78
- package/cjs/i18n/adapter-js/code/index.js +0 -123
- package/cjs/i18n/adapter-js/code/isLocale.js +0 -9
- package/cjs/i18n/adapter-js/code/locales.js +0 -8
- package/cjs/i18n/adapter-js/code/pathnameToRouteId.js +0 -20
- package/cjs/i18n/adapter-js/code/routes.js +0 -11
- package/cjs/i18n/adapter-js/code/routesSlim.js +0 -11
- package/cjs/i18n/adapter-js/code/routesSpa.js +0 -11
- package/cjs/i18n/adapter-js/code/tFns.js +0 -34
- package/cjs/i18n/adapter-js/code/tInterpolateParams.js +0 -18
- package/cjs/i18n/adapter-js/code/tPluralise.js +0 -10
- package/cjs/i18n/adapter-js/code/to.js +0 -32
- package/cjs/i18n/adapter-js/code/toFns.js +0 -25
- package/cjs/i18n/adapter-js/code/toFormat.js +0 -56
- package/cjs/i18n/adapter-js/code/toSpa.js +0 -42
- package/cjs/i18n/adapter-js/code/types.js +0 -327
- package/cjs/i18n/adapter-next/code/index.js +0 -54
- package/cjs/i18n/adapter-next/code/next-redirects.js +0 -5
- package/cjs/i18n/adapter-next/code/next-rewrites.js +0 -5
- package/cjs/i18n/adapter-next/code/useCurrentLocalisedPathnames.js +0 -20
- package/cjs/i18n/adapter-next/code/useLocale.js +0 -8
- package/cjs/i18n/adapter-next/code/useRouteId.js +0 -10
- package/cjs/i18n/adapter-next/code/useTo.js +0 -26
- package/cjs/i18n/adapter-next/code/useToSpa.js +0 -34
- package/cjs/i18n/adapter-next/plugin-async.js +0 -11
- package/cjs/i18n/adapter-next/plugin-legacy.js +0 -187
- package/cjs/i18n/adapter-next/plugin-shared.js +0 -39
- package/cjs/i18n/adapter-next/plugin.js +0 -13
- package/cjs/i18n/adapter-next/redirects.js +0 -51
- package/cjs/i18n/adapter-next/rewrites.js +0 -50
- package/cjs/i18n/adapter-next/transformPathname.js +0 -3
- package/cjs/i18n/adapter-next/webpackPluginI18n.js +0 -11
- package/cjs/i18n/adapter-next-translate/code/DynamicNamespaces.js +0 -9
- package/cjs/i18n/adapter-next-translate/code/T.js +0 -31
- package/cjs/i18n/adapter-next-translate/code/TransText.js +0 -9
- package/cjs/i18n/adapter-next-translate/code/getT.js +0 -15
- package/cjs/i18n/adapter-next-translate/code/index.js +0 -49
- package/cjs/i18n/adapter-next-translate/code/nextTranslateI18n.js +0 -19
- package/cjs/i18n/adapter-next-translate/code/useT.js +0 -43
- package/cjs/i18n/client/formatRoutePathname.js +0 -5
- package/cjs/i18n/client/index.js +0 -3
- package/cjs/i18n/client/interpolateTo.js +0 -14
- package/cjs/i18n/client/routeHasDynamicPortion.js +0 -2
- package/cjs/i18n/compiler/api.js +0 -18
- package/cjs/i18n/compiler/code/data-routes.js +0 -99
- package/cjs/i18n/compiler/code/data-translations.js +0 -86
- package/cjs/i18n/compiler/code/data.js +0 -20
- package/cjs/i18n/compiler/code/generate.js +0 -46
- package/cjs/i18n/compiler/code/index.js +0 -2
- package/cjs/i18n/compiler/code/tsCompile.js +0 -27
- package/cjs/i18n/compiler/code/write.js +0 -39
- package/cjs/i18n/compiler/config.js +0 -13
- package/cjs/i18n/compiler/helpers.js +0 -14
- package/cjs/i18n/compiler/input/data-local.js +0 -60
- package/cjs/i18n/compiler/input/data-remote.js +0 -41
- package/cjs/i18n/compiler/input/data.js +0 -11
- package/cjs/i18n/compiler/input/index.js +0 -3
- package/cjs/i18n/compiler/input/types.js +0 -1
- package/cjs/i18n/compiler/input/write.js +0 -15
- package/cjs/i18n/compiler/pluralisation.js +0 -59
- package/cjs/i18n/compiler/summary/data.js +0 -28
- package/cjs/i18n/compiler/summary/generate.js +0 -27
- package/cjs/i18n/compiler/summary/index.js +0 -2
- package/cjs/i18n/compiler/summary/write.js +0 -18
- package/cjs/i18n/compiler/types.js +0 -1
- package/cjs/i18n/compiler-sync.js +0 -2
- package/cjs/i18n/compiler-worker.js +0 -3
- package/cjs/i18n/compiler.js +0 -1
- package/cjs/i18n/index.js +0 -2
- package/cjs/i18n/next.js +0 -3
- package/cjs/i18n/types.js +0 -1
- package/cjs/index.d.ts +0 -2
- package/cjs/next.d.ts +0 -3
- package/cjs/package.json +0 -34
- package/cjs/types.d.ts +0 -48
- package/client/formatRoutePathname.js +0 -5
- package/client/index.js +0 -3
- package/client/interpolateTo.js +0 -14
- package/client/routeHasDynamicPortion.js +0 -2
- package/compiler/api.js +0 -18
- package/compiler/code/data-routes.js +0 -99
- package/compiler/code/data-translations.js +0 -86
- package/compiler/code/data.js +0 -20
- package/compiler/code/generate.js +0 -46
- package/compiler/code/index.js +0 -2
- package/compiler/code/tsCompile.js +0 -27
- package/compiler/code/write.js +0 -39
- package/compiler/config.js +0 -13
- package/compiler/helpers.js +0 -14
- package/compiler/input/data-local.js +0 -60
- package/compiler/input/data-remote.js +0 -41
- package/compiler/input/data.js +0 -11
- package/compiler/input/index.js +0 -3
- package/compiler/input/types.js +0 -1
- package/compiler/input/write.js +0 -15
- package/compiler/pluralisation.js +0 -59
- package/compiler/summary/data.js +0 -28
- package/compiler/summary/generate.js +0 -27
- package/compiler/summary/index.js +0 -2
- package/compiler/summary/write.js +0 -18
- package/compiler/types.js +0 -1
- package/compiler-sync.js +0 -2
- package/compiler-worker.js +0 -3
- package/compiler.js +0 -1
- package/index.js +0 -2
- package/next.js +0 -3
- package/types.js +0 -1
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { forin as e, isNumericLiteral as l, objectPick as r, split as t, splitReverse as u } from "@koine/utils";
|
|
2
|
-
let s = [
|
|
3
|
-
"zero",
|
|
4
|
-
"one",
|
|
5
|
-
"two",
|
|
6
|
-
"few",
|
|
7
|
-
"many",
|
|
8
|
-
"other"
|
|
9
|
-
], i = "other";
|
|
10
|
-
export let isPluralSuffix = (e)=>s.includes(e) || l(e);
|
|
11
|
-
export let removePluralSuffix = (e)=>{
|
|
12
|
-
let [l] = u(e, "_");
|
|
13
|
-
return l ? e.replace(`_${l}`, "") : e;
|
|
14
|
-
};
|
|
15
|
-
export let getPluralSuffix = (e)=>u(e, "_")[0];
|
|
16
|
-
export let isPluralKey = (e)=>{
|
|
17
|
-
let [l] = u(e, "_");
|
|
18
|
-
return isPluralSuffix(l);
|
|
19
|
-
};
|
|
20
|
-
let a = (e)=>{
|
|
21
|
-
let l = {};
|
|
22
|
-
return e.forEach((e)=>{
|
|
23
|
-
let [r] = t(e, "_");
|
|
24
|
-
l[r] = l[r] || [], l[r].push(e);
|
|
25
|
-
}), l;
|
|
26
|
-
};
|
|
27
|
-
export let transformKeysForPlurals = (l)=>{
|
|
28
|
-
if (l.some(hasRequiredPluralSuffix) || l.includes(i)) {
|
|
29
|
-
let r = l.filter(isPluralKey);
|
|
30
|
-
if (r.length) {
|
|
31
|
-
let t = [
|
|
32
|
-
...l
|
|
33
|
-
];
|
|
34
|
-
return e(a(r), (e, r)=>{
|
|
35
|
-
l.includes(e) || t.push(e), r.forEach((e)=>{
|
|
36
|
-
l.includes(e) && (t = t.filter((l)=>l !== e));
|
|
37
|
-
});
|
|
38
|
-
}), t;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return l;
|
|
42
|
-
};
|
|
43
|
-
export let hasRequiredPluralSuffix = (e)=>isPluralKey(e) && getPluralSuffix(e) === i;
|
|
44
|
-
export let hasPlurals = (e)=>Object.keys(e).some(hasRequiredPluralSuffix) || Object.keys(e).includes(i);
|
|
45
|
-
export let hasOnlyPluralKeys = (e)=>!!hasPlurals(e) && 0 === pickNonPluralKeys(e).length;
|
|
46
|
-
export let pickNonPluralKeys = (e)=>Object.keys(e).filter((e)=>!isPluralSuffix(e));
|
|
47
|
-
export let pickNonPluralValue = (e)=>hasPlurals(e) ? r(e, pickNonPluralKeys(e)) : e;
|
|
48
|
-
export let analyseObjectPlurals = (e)=>{
|
|
49
|
-
let l = Object.keys(e), t = l.includes(i), u = !1, s = e;
|
|
50
|
-
if (t) {
|
|
51
|
-
let t = l.filter((e)=>!isPluralSuffix(e));
|
|
52
|
-
u = 0 === t.length, s = r(e, t);
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
hasPlurals: t,
|
|
56
|
-
hasOnlyPluralKeys: u,
|
|
57
|
-
newValue: s
|
|
58
|
-
};
|
|
59
|
-
};
|
package/compiler/summary/data.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { arraySum as e, forin as t, objectSort as r, objectSortByKeysMatching as l } from "@koine/utils";
|
|
2
|
-
let o = (e, t = {})=>{
|
|
3
|
-
let r = "";
|
|
4
|
-
if (e && "string" == typeof e) r += " " + e.trim();
|
|
5
|
-
else if (Array.isArray(e)) for(let l = 0; l < e.length; l++)r += o(e[l], t);
|
|
6
|
-
else if ("object" == typeof e) for(let l in e)r += o(e[l], t);
|
|
7
|
-
return r;
|
|
8
|
-
}, s = (e, t)=>{
|
|
9
|
-
let { locale: r, path: l } = t, s = `${e}/${r}/${l}`, a = o(t.data), i = a.split(" ").filter(Boolean).length;
|
|
10
|
-
return {
|
|
11
|
-
characters: a.split(" ").filter(Boolean).join("").length,
|
|
12
|
-
locale: r,
|
|
13
|
-
path: l,
|
|
14
|
-
url: s,
|
|
15
|
-
words: i
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export const summaryDataOptions = {};
|
|
19
|
-
export let getSummaryData = (o, a, { translationFiles: i })=>{
|
|
20
|
-
let { defaultLocale: f } = o, n = {};
|
|
21
|
-
for(let e = 0; e < i.length; e++){
|
|
22
|
-
let t = i[e], { locale: r } = t, l = s(a.sourceUrl, t);
|
|
23
|
-
n[r] = n[r] || {}, n[r].files = n[r].files || [], n[r].files.push(l);
|
|
24
|
-
}
|
|
25
|
-
return t(n = l(n, f), (t, l)=>{
|
|
26
|
-
n[t].characters = e(l.files.map((e)=>e.characters)), n[t].files = n[t].files.sort((e, t)=>e.path.localeCompare(t.path)), n[t].words = e(l.files.map((e)=>e.words)), n[t] = r(n[t]);
|
|
27
|
-
}), n;
|
|
28
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { forin as t, objectMergeWithDefaults as e, objectSort as r } from "@koine/utils";
|
|
2
|
-
import { summaryDataOptions as h } from "./data";
|
|
3
|
-
let l = (e)=>{
|
|
4
|
-
let h = {};
|
|
5
|
-
return t(e, (t, e)=>{
|
|
6
|
-
let { files: r } = e;
|
|
7
|
-
for(let e = 0; e < r.length; e++){
|
|
8
|
-
let l = r[e], { path: d } = l;
|
|
9
|
-
h[d] = h[d] || {}, h[d][t] = l;
|
|
10
|
-
}
|
|
11
|
-
}), h = r(h);
|
|
12
|
-
}, d = (e)=>{
|
|
13
|
-
let r = l(e), h = "", d = "", a = [], o = 'style="border-right:1px solid grey"';
|
|
14
|
-
return t(r, (e, r)=>{
|
|
15
|
-
d += `<tr><td ${o}>${e}</td>`, t(r, (t, e)=>{
|
|
16
|
-
let { characters: r, words: h, url: l } = e;
|
|
17
|
-
a.includes(t) || a.push(t), d += `<td><a href="${l}">${t}</a></td><td>${h}</td><td ${o}>${r}</td>`;
|
|
18
|
-
}), d += "</tr>";
|
|
19
|
-
}), h += `<table><thead><tr><th ${o}>file path</th>` + a.map(()=>`<th>lang</th><th>words</th><th ${o}>chars</th>`).join("") + `</tr></thead><tbody>${d}</tbody></table>\n`;
|
|
20
|
-
}, a = (e, r)=>{
|
|
21
|
-
let h = "", l = "";
|
|
22
|
-
return t(e, (t, e)=>{
|
|
23
|
-
let { files: h, characters: d, words: a } = e, o = `${r.sourceUrl}/${t}`;
|
|
24
|
-
l += `<tr><th><a href="${o}">${t}</a></th><td>${h.length}</td><td>${a}</td><td>${d}</td></tr>`;
|
|
25
|
-
}), h += `<table><thead><tr><th>locale</th><th>files</th><th>words</th><th>chars</th></tr></thead><tbody>${l}</tbody></table>\n`;
|
|
26
|
-
}, o = (t, e)=>"# Summary\n" + ("\n### By locale\n\n" + a(t, e) + "\n### By file path\n\n") + d(t);
|
|
27
|
-
export let generateSummary = (t, r)=>o(t, e(h, r));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { join as r } from "node:path";
|
|
2
|
-
import { fsWrite as t, fsWriteSync as e } from "@koine/node";
|
|
3
|
-
import { generateSummary as o } from "./generate";
|
|
4
|
-
let i = (t, e, o, i)=>[
|
|
5
|
-
r(o, i),
|
|
6
|
-
t.pretty ? JSON.stringify(e, null, 2) : JSON.stringify(e)
|
|
7
|
-
], n = (t, e, i, n)=>[
|
|
8
|
-
r(i, n),
|
|
9
|
-
o(e, t)
|
|
10
|
-
];
|
|
11
|
-
export let writeSummary = async (r, e)=>{
|
|
12
|
-
let { cwd: o = process.cwd(), outputJson: m, outputMarkdown: a, ...p } = r;
|
|
13
|
-
return m && await t(...i(r, e, o, m)), a && await t(...n(p, e, o, a)), e;
|
|
14
|
-
};
|
|
15
|
-
export let writeSummarySync = (r, t)=>{
|
|
16
|
-
let { cwd: o = process.cwd(), outputJson: m, outputMarkdown: a, ...p } = r;
|
|
17
|
-
return m && e(...i(r, t, o, m)), a && e(...n(p, t, o, a)), t;
|
|
18
|
-
};
|
package/compiler/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/compiler-sync.js
DELETED
package/compiler-worker.js
DELETED
package/compiler.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { i18nCompiler } from "./compiler/api";
|
package/index.js
DELETED
package/next.js
DELETED
package/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|