@rexezuge/i18n 1.2.0 → 1.4.0
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/BackendStrings.d.ts +6 -2
- package/dist/BackendStrings.d.ts.map +1 -1
- package/dist/BackendStrings.js +1 -90
- package/dist/BackendStrings.js.map +7 -1
- package/dist/getLocalizedStrings.d.ts +1 -1
- package/dist/getLocalizedStrings.d.ts.map +1 -1
- package/dist/getLocalizedStrings.js +1 -62
- package/dist/getLocalizedStrings.js.map +7 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -26
- package/dist/index.js.map +7 -1
- package/dist/locales/de.d.ts +1 -1
- package/dist/locales/de.d.ts.map +1 -1
- package/dist/locales/de.js +1 -9
- package/dist/locales/de.js.map +7 -1
- package/dist/locales/en.d.ts +1 -1
- package/dist/locales/en.d.ts.map +1 -1
- package/dist/locales/en.js +1 -9
- package/dist/locales/en.js.map +7 -1
- package/dist/locales/es.d.ts +1 -1
- package/dist/locales/es.d.ts.map +1 -1
- package/dist/locales/es.js +1 -9
- package/dist/locales/es.js.map +7 -1
- package/dist/locales/fr.d.ts +1 -1
- package/dist/locales/fr.d.ts.map +1 -1
- package/dist/locales/fr.js +1 -9
- package/dist/locales/fr.js.map +7 -1
- package/dist/locales/it.d.ts +1 -1
- package/dist/locales/it.d.ts.map +1 -1
- package/dist/locales/it.js +1 -9
- package/dist/locales/it.js.map +7 -1
- package/dist/locales/ja.d.ts +1 -1
- package/dist/locales/ja.d.ts.map +1 -1
- package/dist/locales/ja.js +1 -9
- package/dist/locales/ja.js.map +7 -1
- package/dist/locales/ko.d.ts +1 -1
- package/dist/locales/ko.d.ts.map +1 -1
- package/dist/locales/ko.js +1 -9
- package/dist/locales/ko.js.map +7 -1
- package/dist/locales/nl.d.ts +1 -1
- package/dist/locales/nl.d.ts.map +1 -1
- package/dist/locales/nl.js +1 -9
- package/dist/locales/nl.js.map +7 -1
- package/dist/locales/pl.d.ts +1 -1
- package/dist/locales/pl.d.ts.map +1 -1
- package/dist/locales/pl.js +1 -9
- package/dist/locales/pl.js.map +7 -1
- package/dist/locales/pt.d.ts +1 -1
- package/dist/locales/pt.d.ts.map +1 -1
- package/dist/locales/pt.js +1 -9
- package/dist/locales/pt.js.map +7 -1
- package/dist/locales/zh-CN.d.ts +1 -1
- package/dist/locales/zh-CN.d.ts.map +1 -1
- package/dist/locales/zh-CN.js +1 -9
- package/dist/locales/zh-CN.js.map +7 -1
- package/dist/locales/zh-TW.d.ts +1 -1
- package/dist/locales/zh-TW.d.ts.map +1 -1
- package/dist/locales/zh-TW.js +1 -9
- package/dist/locales/zh-TW.js.map +7 -1
- package/package.json +2 -2
package/dist/BackendStrings.d.ts
CHANGED
|
@@ -37,9 +37,13 @@
|
|
|
37
37
|
* that one function is inlined below rather than re-exported from a sibling
|
|
38
38
|
* kit package — the tag grammar is small, fixed, and testable here.
|
|
39
39
|
*/
|
|
40
|
-
/**
|
|
40
|
+
/**
|
|
41
|
+
Every locale the bundle ships. `en` is the fallback and is never empty.
|
|
42
|
+
*/
|
|
41
43
|
declare const SUPPORTED_LOCALES: readonly ["en", "de", "fr", "es", "it", "nl", "pt", "pl", "ja", "zh-CN", "zh-TW", "ko"];
|
|
42
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
A locale tag that has a bundle. Anything else resolves through `normalizeLocale`.
|
|
46
|
+
*/
|
|
43
47
|
type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
|
|
44
48
|
/**
|
|
45
49
|
* Messages a request path can actually emit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackendStrings.d.ts","sourceRoot":"","sources":["../src/BackendStrings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH
|
|
1
|
+
{"version":3,"file":"BackendStrings.d.ts","sourceRoot":"","sources":["../src/BackendStrings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH;;EAEE;AACF,QAAA,MAAM,iBAAiB,yFAA0F,CAAC;AAElH;;EAEE;AACF,KAAK,eAAe,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D;;;;;;;GAOG;AACH,UAAU,aAAa;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,UAAU,cAAc;IACtB,MAAM,EAAE,aAAa,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,iBAAS,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAQpD;AAED;;;;;;;;;;;;;;GAcG;AACH,iBAAS,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,eAAe,CAU3E;AAED,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,eAAe,EAAE,CAAC;AACvE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC"}
|
package/dist/BackendStrings.js
CHANGED
|
@@ -1,90 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* The key/type source of truth for every localized backend string.
|
|
3
|
-
*
|
|
4
|
-
* ## Provenance
|
|
5
|
-
*
|
|
6
|
-
* Distilled from `packages/shared/src/i18n/BackendStrings.ts` across the
|
|
7
|
-
* consumer repos, comparing them one by one:
|
|
8
|
-
*
|
|
9
|
-
* - **Durable-DAV** — the canonical base. Its `AGENTS.md` pins backend strings
|
|
10
|
-
* to `packages/shared/src/i18n`, and it is the copy that *deliberately*
|
|
11
|
-
* shrunk: the `repo`/`token`/`issue`/`git`/`namespace` groups, 15 keys across
|
|
12
|
-
* 12 locales (~60 translated strings), were deleted because no production
|
|
13
|
-
* code path ever read them and `validate_locales.mjs` failed CI on a missing
|
|
14
|
-
* translation of a key nothing could emit.
|
|
15
|
-
* - **Durable-DAV-Router** — same twelve locales, same `common` group, same
|
|
16
|
-
* fallback chain, plus a `resolveLocalizedStrings(locale, fallback)` chain
|
|
17
|
-
* and a `formatBackendString` interpolator (its own data is gone, so that
|
|
18
|
-
* interpolator is residue here too).
|
|
19
|
-
* - **Edge-Git** — same twelve locales and same three `common` strings, but it
|
|
20
|
-
* still carries the five groups Durable-DAV deleted, and its bundle is
|
|
21
|
-
* therefore the only one with `{placeholder}` values.
|
|
22
|
-
* - **Mail-Otter** — same twelve locales, an entirely different product
|
|
23
|
-
* bundle (digest/actionPage/summary/chat/tracking/notify/results/csv). No
|
|
24
|
-
* overlap with the `common` group at all.
|
|
25
|
-
* - **Edge-Sonic** — partial: an English-only single-file bundle with one
|
|
26
|
-
* flattened `common` group of eight keys. Noted, not ported.
|
|
27
|
-
*
|
|
28
|
-
* Durable-DAV's set wins, so `common` with three keys is the canonical
|
|
29
|
-
* bundle: three repos ship those three strings identically, a fourth ships
|
|
30
|
-
* them plus five unreachable groups, and the fifth ships something else
|
|
31
|
-
* entirely.
|
|
32
|
-
*
|
|
33
|
-
* ## Self-contained
|
|
34
|
-
*
|
|
35
|
-
* The source repos import `canonicalizeLanguageTag` from
|
|
36
|
-
* `shared/utils/LanguageTag`. This package has zero runtime dependencies, so
|
|
37
|
-
* that one function is inlined below rather than re-exported from a sibling
|
|
38
|
-
* kit package — the tag grammar is small, fixed, and testable here.
|
|
39
|
-
*/
|
|
40
|
-
/** Every locale the bundle ships. `en` is the fallback and is never empty. */
|
|
41
|
-
const SUPPORTED_LOCALES = ['en', 'de', 'fr', 'es', 'it', 'nl', 'pt', 'pl', 'ja', 'zh-CN', 'zh-TW', 'ko'];
|
|
42
|
-
/**
|
|
43
|
-
* Fold a raw language tag to its canonical form.
|
|
44
|
-
*
|
|
45
|
-
* `_` separators are macOS-style and must not create a distinct tag; the
|
|
46
|
-
* language subtag is lowercase and any two-letter region is uppercase, which
|
|
47
|
-
* is what makes `zh_cn`, `ZH-CN` and `zh-CN` the *same* tag before any bundle
|
|
48
|
-
* lookup happens. A tag that is only separators is `en`, not an empty string.
|
|
49
|
-
*/
|
|
50
|
-
function canonicalizeLanguageTag(tag) {
|
|
51
|
-
const normalized = tag.trim().replaceAll('_', '-');
|
|
52
|
-
const parts = normalized.split('-').filter(Boolean);
|
|
53
|
-
if (parts.length === 0)
|
|
54
|
-
return 'en';
|
|
55
|
-
const language = (parts[0] ?? 'en').toLowerCase();
|
|
56
|
-
if (parts.length === 1)
|
|
57
|
-
return language;
|
|
58
|
-
const rest = parts.slice(1).map((part) => (part.length === 2 ? part.toUpperCase() : part.toLowerCase()));
|
|
59
|
-
return [language, ...rest].join('-');
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Resolve any tag — or nothing at all — to a locale that has a bundle.
|
|
63
|
-
*
|
|
64
|
-
* The fallback rules, in order:
|
|
65
|
-
*
|
|
66
|
-
* 1. Nothing, or not a string, is `en`. A missing `Accept-Language` and a
|
|
67
|
-
* corrupt one must not diverge.
|
|
68
|
-
* 2. An exact canonical hit wins, so `zh-CN` stays distinct from `zh-TW`.
|
|
69
|
-
* 3. `zh` — and any other `zh-*` region — collapses to `zh-CN`. It is the
|
|
70
|
-
* default Simplified bundle, which is what `zh` means to a client that
|
|
71
|
-
* sends the bare language subtag.
|
|
72
|
-
* 4. A base-language match maps a regional variant onto its language bundle:
|
|
73
|
-
* `de-AT` is `de`, `pt-BR` is `pt`. A wrong-but-close locale is worse than
|
|
74
|
-
* an honest fallback, but an unrelated one (`xx`) is not mapped at all.
|
|
75
|
-
*/
|
|
76
|
-
function normalizeLocale(locale) {
|
|
77
|
-
if (!locale || typeof locale !== 'string')
|
|
78
|
-
return 'en';
|
|
79
|
-
const canonical = canonicalizeLanguageTag(locale);
|
|
80
|
-
if (SUPPORTED_LOCALES.includes(canonical)) {
|
|
81
|
-
return canonical;
|
|
82
|
-
}
|
|
83
|
-
const base = canonical.split('-', 1)[0]?.toLowerCase() ?? 'en';
|
|
84
|
-
if (base === 'zh')
|
|
85
|
-
return 'zh-CN';
|
|
86
|
-
const match = SUPPORTED_LOCALES.find((l) => l.toLowerCase() === base);
|
|
87
|
-
return (match || 'en');
|
|
88
|
-
}
|
|
89
|
-
export { SUPPORTED_LOCALES, canonicalizeLanguageTag, normalizeLocale };
|
|
90
|
-
//# sourceMappingURL=BackendStrings.js.map
|
|
1
|
+
const a=["en","de","fr","es","it","nl","pt","pl","ja","zh-CN","zh-TW","ko"];function s(n){const e=n.trim().replaceAll("_","-").split("-").filter(Boolean);if(e.length===0)return"en";const o=(e[0]??"en").toLowerCase();if(e.length===1)return o;const r=e.slice(1).map(i=>i.length===2?i.toUpperCase():i.toLowerCase());return[o,...r].join("-")}function c(n){if(!n||typeof n!="string")return"en";const t=s(n);if(a.includes(t))return t;const e=t.split("-",1)[0]?.toLowerCase()??"en";return e==="zh"?"zh-CN":a.find(r=>r.toLowerCase()===e)||"en"}export{a as SUPPORTED_LOCALES,s as canonicalizeLanguageTag,c as normalizeLocale};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/BackendStrings.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * The key/type source of truth for every localized backend string.\n *\n * ## Provenance\n *\n * Distilled from `packages/shared/src/i18n/BackendStrings.ts` across the\n * consumer repos, comparing them one by one:\n *\n * - **Durable-DAV** — the canonical base. Its `AGENTS.md` pins backend strings\n * to `packages/shared/src/i18n`, and it is the copy that *deliberately*\n * shrunk: the `repo`/`token`/`issue`/`git`/`namespace` groups, 15 keys across\n * 12 locales (~60 translated strings), were deleted because no production\n * code path ever read them and `validate_locales.mjs` failed CI on a missing\n * translation of a key nothing could emit.\n * - **Durable-DAV-Router** — same twelve locales, same `common` group, same\n * fallback chain, plus a `resolveLocalizedStrings(locale, fallback)` chain\n * and a `formatBackendString` interpolator (its own data is gone, so that\n * interpolator is residue here too).\n * - **Edge-Git** — same twelve locales and same three `common` strings, but it\n * still carries the five groups Durable-DAV deleted, and its bundle is\n * therefore the only one with `{placeholder}` values.\n * - **Mail-Otter** — same twelve locales, an entirely different product\n * bundle (digest/actionPage/summary/chat/tracking/notify/results/csv). No\n * overlap with the `common` group at all.\n * - **Edge-Sonic** — partial: an English-only single-file bundle with one\n * flattened `common` group of eight keys. Noted, not ported.\n *\n * Durable-DAV's set wins, so `common` with three keys is the canonical\n * bundle: three repos ship those three strings identically, a fourth ships\n * them plus five unreachable groups, and the fifth ships something else\n * entirely.\n *\n * ## Self-contained\n *\n * The source repos import `canonicalizeLanguageTag` from\n * `shared/utils/LanguageTag`. This package has zero runtime dependencies, so\n * that one function is inlined below rather than re-exported from a sibling\n * kit package — the tag grammar is small, fixed, and testable here.\n */\n\n/**\nEvery locale the bundle ships. `en` is the fallback and is never empty.\n*/\nconst SUPPORTED_LOCALES = ['en', 'de', 'fr', 'es', 'it', 'nl', 'pt', 'pl', 'ja', 'zh-CN', 'zh-TW', 'ko'] as const;\n\n/**\nA locale tag that has a bundle. Anything else resolves through `normalizeLocale`.\n*/\ntype SupportedLocale = (typeof SUPPORTED_LOCALES)[number];\n\n/**\n * Messages a request path can actually emit.\n *\n * The group exists because a route boundary maps a `ServiceError` onto a status\n * and, for the 401/403/500 pair, onto a client-facing sentence. Nothing here is\n * interpolated: a message is either static or comes from the error itself, so a\n * `{placeholder}` would be printed to a client verbatim.\n */\ninterface CommonStrings {\n unauthorized: string;\n forbidden: string;\n internalError: string;\n}\n\ninterface BackendStrings {\n common: CommonStrings;\n}\n\n/**\n * Fold a raw language tag to its canonical form.\n *\n * `_` separators are macOS-style and must not create a distinct tag; the\n * language subtag is lowercase and any two-letter region is uppercase, which\n * is what makes `zh_cn`, `ZH-CN` and `zh-CN` the *same* tag before any bundle\n * lookup happens. A tag that is only separators is `en`, not an empty string.\n */\nfunction canonicalizeLanguageTag(tag: string): string {\n const normalized = tag.trim().replaceAll('_', '-');\n const parts = normalized.split('-').filter(Boolean);\n if (parts.length === 0) return 'en';\n const language = (parts[0] ?? 'en').toLowerCase();\n if (parts.length === 1) return language;\n const rest = parts.slice(1).map((part) => (part.length === 2 ? part.toUpperCase() : part.toLowerCase()));\n return [language, ...rest].join('-');\n}\n\n/**\n * Resolve any tag — or nothing at all — to a locale that has a bundle.\n *\n * The fallback rules, in order:\n *\n * 1. Nothing, or not a string, is `en`. A missing `Accept-Language` and a\n * corrupt one must not diverge.\n * 2. An exact canonical hit wins, so `zh-CN` stays distinct from `zh-TW`.\n * 3. `zh` — and any other `zh-*` region — collapses to `zh-CN`. It is the\n * default Simplified bundle, which is what `zh` means to a client that\n * sends the bare language subtag.\n * 4. A base-language match maps a regional variant onto its language bundle:\n * `de-AT` is `de`, `pt-BR` is `pt`. A wrong-but-close locale is worse than\n * an honest fallback, but an unrelated one (`xx`) is not mapped at all.\n */\nfunction normalizeLocale(locale: string | null | undefined): SupportedLocale {\n if (!locale || typeof locale !== 'string') return 'en';\n const canonical = canonicalizeLanguageTag(locale);\n if ((SUPPORTED_LOCALES as readonly string[]).includes(canonical)) {\n return canonical as SupportedLocale;\n }\n const base = canonical.split('-', 1)[0]?.toLowerCase() ?? 'en';\n if (base === 'zh') return 'zh-CN';\n const match = (SUPPORTED_LOCALES as readonly string[]).find((l) => l.toLowerCase() === base);\n return (match || 'en') as SupportedLocale;\n}\n\nexport { SUPPORTED_LOCALES, canonicalizeLanguageTag, normalizeLocale };\nexport type { BackendStrings, CommonStrings, SupportedLocale };\n"],
|
|
5
|
+
"mappings": "AA2CA,MAAMA,EAAoB,CAAC,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,KAAM,QAAS,QAAS,IAAI,EAiCvG,SAASC,EAAwBC,EAAW,CAE1C,MAAMC,EADaD,EAAI,KAAI,EAAG,WAAW,IAAK,GAAG,EACxB,MAAM,GAAG,EAAE,OAAO,OAAO,EAClD,GAAIC,EAAM,SAAW,EAAG,MAAO,KAC/B,MAAMC,GAAYD,EAAM,CAAC,GAAK,MAAM,YAAW,EAC/C,GAAIA,EAAM,SAAW,EAAG,OAAOC,EAC/B,MAAMC,EAAOF,EAAM,MAAM,CAAC,EAAE,IAAKG,GAAUA,EAAK,SAAW,EAAIA,EAAK,YAAW,EAAKA,EAAK,YAAW,CAAG,EACvG,MAAO,CAACF,EAAU,GAAGC,CAAI,EAAE,KAAK,GAAG,CACrC,CAiBA,SAASE,EAAgBC,EAAiC,CACxD,GAAI,CAACA,GAAU,OAAOA,GAAW,SAAU,MAAO,KAClD,MAAMC,EAAYR,EAAwBO,CAAM,EAChD,GAAKR,EAAwC,SAASS,CAAS,EAC7D,OAAOA,EAET,MAAMC,EAAOD,EAAU,MAAM,IAAK,CAAC,EAAE,CAAC,GAAG,YAAW,GAAM,KAC1D,OAAIC,IAAS,KAAa,QACXV,EAAwC,KAAMW,GAAMA,EAAE,YAAW,IAAOD,CAAI,GAC1E,IACnB",
|
|
6
|
+
"names": ["SUPPORTED_LOCALES", "canonicalizeLanguageTag", "tag", "parts", "language", "rest", "part", "normalizeLocale", "locale", "canonical", "base", "l"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLocalizedStrings.d.ts","sourceRoot":"","sources":["../src/getLocalizedStrings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getLocalizedStrings.d.ts","sourceRoot":"","sources":["../src/getLocalizedStrings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAe3E;;;;;;GAMG;AACH,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,eAAe,EAAE,cAAc,CAa3D,CAAC;AAEF;;;;;;;GAOG;AACH,iBAAS,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,cAAc,CAE9E;AAED;;;;;;;;;;GAUG;AACH,iBAAS,uBAAuB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,cAAc,CAGjG;AAED,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -1,62 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { deStrings } from './locales/de';
|
|
3
|
-
import { enStrings } from './locales/en';
|
|
4
|
-
import { esStrings } from './locales/es';
|
|
5
|
-
import { frStrings } from './locales/fr';
|
|
6
|
-
import { itStrings } from './locales/it';
|
|
7
|
-
import { jaStrings } from './locales/ja';
|
|
8
|
-
import { koStrings } from './locales/ko';
|
|
9
|
-
import { nlStrings } from './locales/nl';
|
|
10
|
-
import { plStrings } from './locales/pl';
|
|
11
|
-
import { ptStrings } from './locales/pt';
|
|
12
|
-
import { zhCNStrings } from './locales/zh-CN';
|
|
13
|
-
import { zhTWStrings } from './locales/zh-TW';
|
|
14
|
-
/**
|
|
15
|
-
* The twelve bundles, keyed by locale.
|
|
16
|
-
*
|
|
17
|
-
* Typed as a total `Record` rather than a partial map with a `??` at the read
|
|
18
|
-
* site: adding a locale to `SUPPORTED_LOCALES` without adding a bundle is a
|
|
19
|
-
* compile error here instead of a runtime `undefined` string at the boundary.
|
|
20
|
-
*/
|
|
21
|
-
const LOCALE_STRINGS = {
|
|
22
|
-
en: enStrings,
|
|
23
|
-
de: deStrings,
|
|
24
|
-
fr: frStrings,
|
|
25
|
-
es: esStrings,
|
|
26
|
-
it: itStrings,
|
|
27
|
-
nl: nlStrings,
|
|
28
|
-
pt: ptStrings,
|
|
29
|
-
pl: plStrings,
|
|
30
|
-
ja: jaStrings,
|
|
31
|
-
'zh-CN': zhCNStrings,
|
|
32
|
-
'zh-TW': zhTWStrings,
|
|
33
|
-
ko: koStrings,
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Look up the bundle for a language tag.
|
|
37
|
-
*
|
|
38
|
-
* `null`/`undefined`/`""`/unknown all land on `en` through `normalizeLocale`,
|
|
39
|
-
* so a caller cannot get `undefined` back and never has to guard the read.
|
|
40
|
-
* Prefer this over indexing `LOCALE_STRINGS` directly — the index would happily
|
|
41
|
-
* return `undefined` for a tag that has no bundle.
|
|
42
|
-
*/
|
|
43
|
-
function getLocalizedStrings(locale) {
|
|
44
|
-
return LOCALE_STRINGS[normalizeLocale(locale)];
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Look up a bundle, falling back to a second preference before `en`.
|
|
48
|
-
*
|
|
49
|
-
* This is the `Accept-Language` plus stored-user-preference pair: the header is
|
|
50
|
-
* what the *client* sent this request, the stored preference is what the user
|
|
51
|
-
* chose once. The stored preference only speaks when the header does not
|
|
52
|
-
* express a real choice, which is what `primary === 'en'` means — an explicit
|
|
53
|
-
* `en` header and an absent header are indistinguishable to this resolver, and
|
|
54
|
-
* that is deliberate, because a browser that sends `en` while the user picked
|
|
55
|
-
* `ja` should still get `ja`.
|
|
56
|
-
*/
|
|
57
|
-
function resolveLocalizedStrings(locale, fallback) {
|
|
58
|
-
const primary = normalizeLocale(locale);
|
|
59
|
-
return getLocalizedStrings(primary === 'en' ? normalizeLocale(fallback) : primary);
|
|
60
|
-
}
|
|
61
|
-
export { LOCALE_STRINGS, getLocalizedStrings, resolveLocalizedStrings };
|
|
62
|
-
//# sourceMappingURL=getLocalizedStrings.js.map
|
|
1
|
+
import{normalizeLocale as t}from"./BackendStrings.js";import{deStrings as p}from"./locales/de.js";import{enStrings as s}from"./locales/en.js";import{esStrings as e}from"./locales/es.js";import{frStrings as f}from"./locales/fr.js";import{itStrings as S}from"./locales/it.js";import{jaStrings as g}from"./locales/ja.js";import{koStrings as l}from"./locales/ko.js";import{nlStrings as a}from"./locales/nl.js";import{plStrings as c}from"./locales/pl.js";import{ptStrings as z}from"./locales/pt.js";import{zhCNStrings as L}from"./locales/zh-CN.js";import{zhTWStrings as d}from"./locales/zh-TW.js";const i={en:s,de:p,fr:f,es:e,it:S,nl:a,pt:z,pl:c,ja:g,"zh-CN":L,"zh-TW":d,ko:l};function m(r){return i[t(r)]}function h(r,n){const o=t(r);return m(o==="en"?t(n):o)}export{i as LOCALE_STRINGS,m as getLocalizedStrings,h as resolveLocalizedStrings};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/getLocalizedStrings.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings, SupportedLocale } from './BackendStrings.ts';\nimport { normalizeLocale } from './BackendStrings.ts';\nimport { deStrings } from './locales/de.ts';\nimport { enStrings } from './locales/en.ts';\nimport { esStrings } from './locales/es.ts';\nimport { frStrings } from './locales/fr.ts';\nimport { itStrings } from './locales/it.ts';\nimport { jaStrings } from './locales/ja.ts';\nimport { koStrings } from './locales/ko.ts';\nimport { nlStrings } from './locales/nl.ts';\nimport { plStrings } from './locales/pl.ts';\nimport { ptStrings } from './locales/pt.ts';\nimport { zhCNStrings } from './locales/zh-CN.ts';\nimport { zhTWStrings } from './locales/zh-TW.ts';\n\n/**\n * The twelve bundles, keyed by locale.\n *\n * Typed as a total `Record` rather than a partial map with a `??` at the read\n * site: adding a locale to `SUPPORTED_LOCALES` without adding a bundle is a\n * compile error here instead of a runtime `undefined` string at the boundary.\n */\nconst LOCALE_STRINGS: Record<SupportedLocale, BackendStrings> = {\n en: enStrings,\n de: deStrings,\n fr: frStrings,\n es: esStrings,\n it: itStrings,\n nl: nlStrings,\n pt: ptStrings,\n pl: plStrings,\n ja: jaStrings,\n 'zh-CN': zhCNStrings,\n 'zh-TW': zhTWStrings,\n ko: koStrings,\n};\n\n/**\n * Look up the bundle for a language tag.\n *\n * `null`/`undefined`/`\"\"`/unknown all land on `en` through `normalizeLocale`,\n * so a caller cannot get `undefined` back and never has to guard the read.\n * Prefer this over indexing `LOCALE_STRINGS` directly — the index would happily\n * return `undefined` for a tag that has no bundle.\n */\nfunction getLocalizedStrings(locale: string | null | undefined): BackendStrings {\n return LOCALE_STRINGS[normalizeLocale(locale)];\n}\n\n/**\n * Look up a bundle, falling back to a second preference before `en`.\n *\n * This is the `Accept-Language` plus stored-user-preference pair: the header is\n * what the *client* sent this request, the stored preference is what the user\n * chose once. The stored preference only speaks when the header does not\n * express a real choice, which is what `primary === 'en'` means — an explicit\n * `en` header and an absent header are indistinguishable to this resolver, and\n * that is deliberate, because a browser that sends `en` while the user picked\n * `ja` should still get `ja`.\n */\nfunction resolveLocalizedStrings(locale?: string | null, fallback?: string | null): BackendStrings {\n const primary = normalizeLocale(locale);\n return getLocalizedStrings(primary === 'en' ? normalizeLocale(fallback) : primary);\n}\n\nexport { LOCALE_STRINGS, getLocalizedStrings, resolveLocalizedStrings };\n"],
|
|
5
|
+
"mappings": "AACA,OAAS,mBAAAA,MAAuB,sBAChC,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,eAAAC,MAAmB,qBAC5B,OAAS,eAAAC,MAAmB,qBAS5B,MAAMC,EAA0D,CAC9D,GAAIX,EACJ,GAAID,EACJ,GAAIG,EACJ,GAAID,EACJ,GAAIE,EACJ,GAAIG,EACJ,GAAIE,EACJ,GAAID,EACJ,GAAIH,EACJ,QAASK,EACT,QAASC,EACT,GAAIL,GAWN,SAASO,EAAoBC,EAAiC,CAC5D,OAAOF,EAAeb,EAAgBe,CAAM,CAAC,CAC/C,CAaA,SAASC,EAAwBD,EAAwBE,EAAwB,CAC/E,MAAMC,EAAUlB,EAAgBe,CAAM,EACtC,OAAOD,EAAoBI,IAAY,KAAOlB,EAAgBiB,CAAQ,EAAIC,CAAO,CACnF",
|
|
6
|
+
"names": ["normalizeLocale", "deStrings", "enStrings", "esStrings", "frStrings", "itStrings", "jaStrings", "koStrings", "nlStrings", "plStrings", "ptStrings", "zhCNStrings", "zhTWStrings", "LOCALE_STRINGS", "getLocalizedStrings", "locale", "resolveLocalizedStrings", "fallback", "primary"]
|
|
7
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
* `git` groups are not here); the locale table, the fallback chain, and the
|
|
7
7
|
* lookup are the parts every consumer boundary needs.
|
|
8
8
|
*/
|
|
9
|
-
export { SUPPORTED_LOCALES, canonicalizeLanguageTag, normalizeLocale } from './BackendStrings';
|
|
10
|
-
export type { BackendStrings, CommonStrings, SupportedLocale } from './BackendStrings';
|
|
11
|
-
export { LOCALE_STRINGS, getLocalizedStrings, resolveLocalizedStrings } from './getLocalizedStrings';
|
|
12
|
-
export { deStrings } from './locales/de';
|
|
13
|
-
export { enStrings } from './locales/en';
|
|
14
|
-
export { esStrings } from './locales/es';
|
|
15
|
-
export { frStrings } from './locales/fr';
|
|
16
|
-
export { itStrings } from './locales/it';
|
|
17
|
-
export { jaStrings } from './locales/ja';
|
|
18
|
-
export { koStrings } from './locales/ko';
|
|
19
|
-
export { nlStrings } from './locales/nl';
|
|
20
|
-
export { plStrings } from './locales/pl';
|
|
21
|
-
export { ptStrings } from './locales/pt';
|
|
22
|
-
export { zhCNStrings } from './locales/zh-CN';
|
|
23
|
-
export { zhTWStrings } from './locales/zh-TW';
|
|
9
|
+
export { SUPPORTED_LOCALES, canonicalizeLanguageTag, normalizeLocale } from './BackendStrings.ts';
|
|
10
|
+
export type { BackendStrings, CommonStrings, SupportedLocale } from './BackendStrings.ts';
|
|
11
|
+
export { LOCALE_STRINGS, getLocalizedStrings, resolveLocalizedStrings } from './getLocalizedStrings.ts';
|
|
12
|
+
export { deStrings } from './locales/de.ts';
|
|
13
|
+
export { enStrings } from './locales/en.ts';
|
|
14
|
+
export { esStrings } from './locales/es.ts';
|
|
15
|
+
export { frStrings } from './locales/fr.ts';
|
|
16
|
+
export { itStrings } from './locales/it.ts';
|
|
17
|
+
export { jaStrings } from './locales/ja.ts';
|
|
18
|
+
export { koStrings } from './locales/ko.ts';
|
|
19
|
+
export { nlStrings } from './locales/nl.ts';
|
|
20
|
+
export { plStrings } from './locales/pl.ts';
|
|
21
|
+
export { ptStrings } from './locales/pt.ts';
|
|
22
|
+
export { zhCNStrings } from './locales/zh-CN.ts';
|
|
23
|
+
export { zhTWStrings } from './locales/zh-TW.ts';
|
|
24
24
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAClG,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAKxG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* `@rexezuge/i18n` — the backend string bundle and its twelve locales.
|
|
3
|
-
*
|
|
4
|
-
* Zero runtime dependencies. The bundle is one `common` group of three keys
|
|
5
|
-
* (see `BackendStrings.ts` for the provenance and for why the `repo`/`token`/
|
|
6
|
-
* `git` groups are not here); the locale table, the fallback chain, and the
|
|
7
|
-
* lookup are the parts every consumer boundary needs.
|
|
8
|
-
*/
|
|
9
|
-
export { SUPPORTED_LOCALES, canonicalizeLanguageTag, normalizeLocale } from './BackendStrings';
|
|
10
|
-
export { LOCALE_STRINGS, getLocalizedStrings, resolveLocalizedStrings } from './getLocalizedStrings';
|
|
11
|
-
// The bundles themselves, exported so a consumer can read one directly (a
|
|
12
|
-
// migration script, a test, a bundle-level integrity check) without reaching
|
|
13
|
-
// through the table.
|
|
14
|
-
export { deStrings } from './locales/de';
|
|
15
|
-
export { enStrings } from './locales/en';
|
|
16
|
-
export { esStrings } from './locales/es';
|
|
17
|
-
export { frStrings } from './locales/fr';
|
|
18
|
-
export { itStrings } from './locales/it';
|
|
19
|
-
export { jaStrings } from './locales/ja';
|
|
20
|
-
export { koStrings } from './locales/ko';
|
|
21
|
-
export { nlStrings } from './locales/nl';
|
|
22
|
-
export { plStrings } from './locales/pl';
|
|
23
|
-
export { ptStrings } from './locales/pt';
|
|
24
|
-
export { zhCNStrings } from './locales/zh-CN';
|
|
25
|
-
export { zhTWStrings } from './locales/zh-TW';
|
|
26
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import{SUPPORTED_LOCALES as t,canonicalizeLanguageTag as e,normalizeLocale as i}from"./BackendStrings.js";import{LOCALE_STRINGS as g,getLocalizedStrings as S,resolveLocalizedStrings as p}from"./getLocalizedStrings.js";import{deStrings as f}from"./locales/de.js";import{enStrings as x}from"./locales/en.js";import{esStrings as l}from"./locales/es.js";import{frStrings as z}from"./locales/fr.js";import{itStrings as T}from"./locales/it.js";import{jaStrings as C}from"./locales/ja.js";import{koStrings as O}from"./locales/ko.js";import{nlStrings as A}from"./locales/nl.js";import{plStrings as P}from"./locales/pl.js";import{ptStrings as _}from"./locales/pt.js";import{zhCNStrings as k}from"./locales/zh-CN.js";import{zhTWStrings as v}from"./locales/zh-TW.js";export{g as LOCALE_STRINGS,t as SUPPORTED_LOCALES,e as canonicalizeLanguageTag,f as deStrings,x as enStrings,l as esStrings,z as frStrings,S as getLocalizedStrings,T as itStrings,C as jaStrings,O as koStrings,A as nlStrings,i as normalizeLocale,P as plStrings,_ as ptStrings,p as resolveLocalizedStrings,k as zhCNStrings,v as zhTWStrings};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * `@rexezuge/i18n` — the backend string bundle and its twelve locales.\n *\n * Zero runtime dependencies. The bundle is one `common` group of three keys\n * (see `BackendStrings.ts` for the provenance and for why the `repo`/`token`/\n * `git` groups are not here); the locale table, the fallback chain, and the\n * lookup are the parts every consumer boundary needs.\n */\nexport { SUPPORTED_LOCALES, canonicalizeLanguageTag, normalizeLocale } from './BackendStrings.ts';\nexport type { BackendStrings, CommonStrings, SupportedLocale } from './BackendStrings.ts';\nexport { LOCALE_STRINGS, getLocalizedStrings, resolveLocalizedStrings } from './getLocalizedStrings.ts';\n\n// The bundles themselves, exported so a consumer can read one directly (a\n// migration script, a test, a bundle-level integrity check) without reaching\n// through the table.\nexport { deStrings } from './locales/de.ts';\nexport { enStrings } from './locales/en.ts';\nexport { esStrings } from './locales/es.ts';\nexport { frStrings } from './locales/fr.ts';\nexport { itStrings } from './locales/it.ts';\nexport { jaStrings } from './locales/ja.ts';\nexport { koStrings } from './locales/ko.ts';\nexport { nlStrings } from './locales/nl.ts';\nexport { plStrings } from './locales/pl.ts';\nexport { ptStrings } from './locales/pt.ts';\nexport { zhCNStrings } from './locales/zh-CN.ts';\nexport { zhTWStrings } from './locales/zh-TW.ts';\n"],
|
|
5
|
+
"mappings": "AAQA,OAAS,qBAAAA,EAAmB,2BAAAC,EAAyB,mBAAAC,MAAuB,sBAE5E,OAAS,kBAAAC,EAAgB,uBAAAC,EAAqB,2BAAAC,MAA+B,2BAK7E,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,aAAAC,MAAiB,kBAC1B,OAAS,eAAAC,MAAmB,qBAC5B,OAAS,eAAAC,MAAmB",
|
|
6
|
+
"names": ["SUPPORTED_LOCALES", "canonicalizeLanguageTag", "normalizeLocale", "LOCALE_STRINGS", "getLocalizedStrings", "resolveLocalizedStrings", "deStrings", "enStrings", "esStrings", "frStrings", "itStrings", "jaStrings", "koStrings", "nlStrings", "plStrings", "ptStrings", "zhCNStrings", "zhTWStrings"]
|
|
7
|
+
}
|
package/dist/locales/de.d.ts
CHANGED
package/dist/locales/de.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../src/locales/de.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../src/locales/de.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,SAAS,EAAE,cAMhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/locales/de.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
common: {
|
|
3
|
-
unauthorized: 'Authentifizierung Erforderlich.',
|
|
4
|
-
forbidden: 'Zugriff Verweigert.',
|
|
5
|
-
internalError: 'Interner Serverfehler.',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
export { deStrings };
|
|
9
|
-
//# sourceMappingURL=de.js.map
|
|
1
|
+
const r={common:{unauthorized:"Authentifizierung Erforderlich.",forbidden:"Zugriff Verweigert.",internalError:"Interner Serverfehler."}};export{r as deStrings};
|
package/dist/locales/de.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locales/de.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings } from '../BackendStrings.ts';\n\nconst deStrings: BackendStrings = {\n common: {\n unauthorized: 'Authentifizierung Erforderlich.',\n forbidden: 'Zugriff Verweigert.',\n internalError: 'Interner Serverfehler.',\n },\n};\n\nexport { deStrings };\n"],
|
|
5
|
+
"mappings": "AAEA,MAAMA,EAA4B,CAChC,OAAQ,CACN,aAAc,kCACd,UAAW,sBACX,cAAe",
|
|
6
|
+
"names": ["deStrings"]
|
|
7
|
+
}
|
package/dist/locales/en.d.ts
CHANGED
package/dist/locales/en.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/locales/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,SAAS,EAAE,cAMhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/locales/en.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
common: {
|
|
3
|
-
unauthorized: 'Authentication Required.',
|
|
4
|
-
forbidden: 'Access Denied.',
|
|
5
|
-
internalError: 'Internal Server Error.',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
export { enStrings };
|
|
9
|
-
//# sourceMappingURL=en.js.map
|
|
1
|
+
const r={common:{unauthorized:"Authentication Required.",forbidden:"Access Denied.",internalError:"Internal Server Error."}};export{r as enStrings};
|
package/dist/locales/en.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locales/en.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings } from '../BackendStrings.ts';\n\nconst enStrings: BackendStrings = {\n common: {\n unauthorized: 'Authentication Required.',\n forbidden: 'Access Denied.',\n internalError: 'Internal Server Error.',\n },\n};\n\nexport { enStrings };\n"],
|
|
5
|
+
"mappings": "AAEA,MAAMA,EAA4B,CAChC,OAAQ,CACN,aAAc,2BACd,UAAW,iBACX,cAAe",
|
|
6
|
+
"names": ["enStrings"]
|
|
7
|
+
}
|
package/dist/locales/es.d.ts
CHANGED
package/dist/locales/es.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../src/locales/es.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../src/locales/es.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,SAAS,EAAE,cAMhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/locales/es.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
common: {
|
|
3
|
-
unauthorized: 'Autenticación Requerida.',
|
|
4
|
-
forbidden: 'Acceso Denegado.',
|
|
5
|
-
internalError: 'Error Interno Del Servidor.',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
export { esStrings };
|
|
9
|
-
//# sourceMappingURL=es.js.map
|
|
1
|
+
const r={common:{unauthorized:"Autenticaci\xF3n Requerida.",forbidden:"Acceso Denegado.",internalError:"Error Interno Del Servidor."}};export{r as esStrings};
|
package/dist/locales/es.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locales/es.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings } from '../BackendStrings.ts';\n\nconst esStrings: BackendStrings = {\n common: {\n unauthorized: 'Autenticación Requerida.',\n forbidden: 'Acceso Denegado.',\n internalError: 'Error Interno Del Servidor.',\n },\n};\n\nexport { esStrings };\n"],
|
|
5
|
+
"mappings": "AAEA,MAAMA,EAA4B,CAChC,OAAQ,CACN,aAAc,8BACd,UAAW,mBACX,cAAe",
|
|
6
|
+
"names": ["esStrings"]
|
|
7
|
+
}
|
package/dist/locales/fr.d.ts
CHANGED
package/dist/locales/fr.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/locales/fr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../src/locales/fr.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,SAAS,EAAE,cAMhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/locales/fr.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
common: {
|
|
3
|
-
unauthorized: 'Authentification Requise.',
|
|
4
|
-
forbidden: 'Accès Refusé.',
|
|
5
|
-
internalError: 'Erreur Interne Du Serveur.',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
export { frStrings };
|
|
9
|
-
//# sourceMappingURL=fr.js.map
|
|
1
|
+
const r={common:{unauthorized:"Authentification Requise.",forbidden:"Acc\xE8s Refus\xE9.",internalError:"Erreur Interne Du Serveur."}};export{r as frStrings};
|
package/dist/locales/fr.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locales/fr.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings } from '../BackendStrings.ts';\n\nconst frStrings: BackendStrings = {\n common: {\n unauthorized: 'Authentification Requise.',\n forbidden: 'Accès Refusé.',\n internalError: 'Erreur Interne Du Serveur.',\n },\n};\n\nexport { frStrings };\n"],
|
|
5
|
+
"mappings": "AAEA,MAAMA,EAA4B,CAChC,OAAQ,CACN,aAAc,4BACd,UAAW,sBACX,cAAe",
|
|
6
|
+
"names": ["frStrings"]
|
|
7
|
+
}
|
package/dist/locales/it.d.ts
CHANGED
package/dist/locales/it.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../src/locales/it.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../src/locales/it.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,SAAS,EAAE,cAMhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/locales/it.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
common: {
|
|
3
|
-
unauthorized: 'Autenticazione Richiesta.',
|
|
4
|
-
forbidden: 'Accesso Negato.',
|
|
5
|
-
internalError: 'Errore Interno Del Server.',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
export { itStrings };
|
|
9
|
-
//# sourceMappingURL=it.js.map
|
|
1
|
+
const e={common:{unauthorized:"Autenticazione Richiesta.",forbidden:"Accesso Negato.",internalError:"Errore Interno Del Server."}};export{e as itStrings};
|
package/dist/locales/it.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locales/it.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings } from '../BackendStrings.ts';\n\nconst itStrings: BackendStrings = {\n common: {\n unauthorized: 'Autenticazione Richiesta.',\n forbidden: 'Accesso Negato.',\n internalError: 'Errore Interno Del Server.',\n },\n};\n\nexport { itStrings };\n"],
|
|
5
|
+
"mappings": "AAEA,MAAMA,EAA4B,CAChC,OAAQ,CACN,aAAc,4BACd,UAAW,kBACX,cAAe",
|
|
6
|
+
"names": ["itStrings"]
|
|
7
|
+
}
|
package/dist/locales/ja.d.ts
CHANGED
package/dist/locales/ja.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../src/locales/ja.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../src/locales/ja.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,SAAS,EAAE,cAMhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/locales/ja.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
common: {
|
|
3
|
-
unauthorized: '認証が必要です。',
|
|
4
|
-
forbidden: 'アクセスが拒否されました。',
|
|
5
|
-
internalError: 'サーバー内部エラー。',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
export { jaStrings };
|
|
9
|
-
//# sourceMappingURL=ja.js.map
|
|
1
|
+
const r={common:{unauthorized:"\u8A8D\u8A3C\u304C\u5FC5\u8981\u3067\u3059\u3002",forbidden:"\u30A2\u30AF\u30BB\u30B9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002",internalError:"\u30B5\u30FC\u30D0\u30FC\u5185\u90E8\u30A8\u30E9\u30FC\u3002"}};export{r as jaStrings};
|
package/dist/locales/ja.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locales/ja.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings } from '../BackendStrings.ts';\n\nconst jaStrings: BackendStrings = {\n common: {\n unauthorized: '認証が必要です。',\n forbidden: 'アクセスが拒否されました。',\n internalError: 'サーバー内部エラー。',\n },\n};\n\nexport { jaStrings };\n"],
|
|
5
|
+
"mappings": "AAEA,MAAMA,EAA4B,CAChC,OAAQ,CACN,aAAc,mDACd,UAAW,iFACX,cAAe",
|
|
6
|
+
"names": ["jaStrings"]
|
|
7
|
+
}
|
package/dist/locales/ko.d.ts
CHANGED
package/dist/locales/ko.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ko.d.ts","sourceRoot":"","sources":["../../src/locales/ko.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ko.d.ts","sourceRoot":"","sources":["../../src/locales/ko.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,SAAS,EAAE,cAMhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/locales/ko.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
common: {
|
|
3
|
-
unauthorized: '인증이 필요합니다.',
|
|
4
|
-
forbidden: '액세스가 거부되었습니다.',
|
|
5
|
-
internalError: '서버 내부 오류.',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
export { koStrings };
|
|
9
|
-
//# sourceMappingURL=ko.js.map
|
|
1
|
+
const o={common:{unauthorized:"\uC778\uC99D\uC774 \uD544\uC694\uD569\uB2C8\uB2E4.",forbidden:"\uC561\uC138\uC2A4\uAC00 \uAC70\uBD80\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",internalError:"\uC11C\uBC84 \uB0B4\uBD80 \uC624\uB958."}};export{o as koStrings};
|
package/dist/locales/ko.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locales/ko.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings } from '../BackendStrings.ts';\n\nconst koStrings: BackendStrings = {\n common: {\n unauthorized: '인증이 필요합니다.',\n forbidden: '액세스가 거부되었습니다.',\n internalError: '서버 내부 오류.',\n },\n};\n\nexport { koStrings };\n"],
|
|
5
|
+
"mappings": "AAEA,MAAMA,EAA4B,CAChC,OAAQ,CACN,aAAc,qDACd,UAAW,uEACX,cAAe",
|
|
6
|
+
"names": ["koStrings"]
|
|
7
|
+
}
|
package/dist/locales/nl.d.ts
CHANGED
package/dist/locales/nl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nl.d.ts","sourceRoot":"","sources":["../../src/locales/nl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"nl.d.ts","sourceRoot":"","sources":["../../src/locales/nl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,SAAS,EAAE,cAMhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/locales/nl.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
common: {
|
|
3
|
-
unauthorized: 'Authenticatie Vereist.',
|
|
4
|
-
forbidden: 'Toegang Geweigerd.',
|
|
5
|
-
internalError: 'Interne Serverfout.',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
export { nlStrings };
|
|
9
|
-
//# sourceMappingURL=nl.js.map
|
|
1
|
+
const e={common:{unauthorized:"Authenticatie Vereist.",forbidden:"Toegang Geweigerd.",internalError:"Interne Serverfout."}};export{e as nlStrings};
|
package/dist/locales/nl.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locales/nl.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings } from '../BackendStrings.ts';\n\nconst nlStrings: BackendStrings = {\n common: {\n unauthorized: 'Authenticatie Vereist.',\n forbidden: 'Toegang Geweigerd.',\n internalError: 'Interne Serverfout.',\n },\n};\n\nexport { nlStrings };\n"],
|
|
5
|
+
"mappings": "AAEA,MAAMA,EAA4B,CAChC,OAAQ,CACN,aAAc,yBACd,UAAW,qBACX,cAAe",
|
|
6
|
+
"names": ["nlStrings"]
|
|
7
|
+
}
|
package/dist/locales/pl.d.ts
CHANGED
package/dist/locales/pl.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pl.d.ts","sourceRoot":"","sources":["../../src/locales/pl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pl.d.ts","sourceRoot":"","sources":["../../src/locales/pl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,SAAS,EAAE,cAMhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/locales/pl.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
common: {
|
|
3
|
-
unauthorized: 'Wymagana Autoryzacja.',
|
|
4
|
-
forbidden: 'Odmowa Dostępu.',
|
|
5
|
-
internalError: 'Wewnętrzny Błąd Serwera.',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
export { plStrings };
|
|
9
|
-
//# sourceMappingURL=pl.js.map
|
|
1
|
+
const r={common:{unauthorized:"Wymagana Autoryzacja.",forbidden:"Odmowa Dost\u0119pu.",internalError:"Wewn\u0119trzny B\u0142\u0105d Serwera."}};export{r as plStrings};
|
package/dist/locales/pl.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locales/pl.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings } from '../BackendStrings.ts';\n\nconst plStrings: BackendStrings = {\n common: {\n unauthorized: 'Wymagana Autoryzacja.',\n forbidden: 'Odmowa Dostępu.',\n internalError: 'Wewnętrzny Błąd Serwera.',\n },\n};\n\nexport { plStrings };\n"],
|
|
5
|
+
"mappings": "AAEA,MAAMA,EAA4B,CAChC,OAAQ,CACN,aAAc,wBACd,UAAW,uBACX,cAAe",
|
|
6
|
+
"names": ["plStrings"]
|
|
7
|
+
}
|
package/dist/locales/pt.d.ts
CHANGED
package/dist/locales/pt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../src/locales/pt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pt.d.ts","sourceRoot":"","sources":["../../src/locales/pt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,SAAS,EAAE,cAMhB,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
package/dist/locales/pt.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
common: {
|
|
3
|
-
unauthorized: 'Autenticação Necessária.',
|
|
4
|
-
forbidden: 'Acesso Negado.',
|
|
5
|
-
internalError: 'Erro Interno Do Servidor.',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
export { ptStrings };
|
|
9
|
-
//# sourceMappingURL=pt.js.map
|
|
1
|
+
const o={common:{unauthorized:"Autentica\xE7\xE3o Necess\xE1ria.",forbidden:"Acesso Negado.",internalError:"Erro Interno Do Servidor."}};export{o as ptStrings};
|
package/dist/locales/pt.js.map
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locales/pt.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings } from '../BackendStrings.ts';\n\nconst ptStrings: BackendStrings = {\n common: {\n unauthorized: 'Autenticação Necessária.',\n forbidden: 'Acesso Negado.',\n internalError: 'Erro Interno Do Servidor.',\n },\n};\n\nexport { ptStrings };\n"],
|
|
5
|
+
"mappings": "AAEA,MAAMA,EAA4B,CAChC,OAAQ,CACN,aAAc,oCACd,UAAW,iBACX,cAAe",
|
|
6
|
+
"names": ["ptStrings"]
|
|
7
|
+
}
|
package/dist/locales/zh-CN.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../src/locales/zh-CN.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../src/locales/zh-CN.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,WAAW,EAAE,cAMlB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/locales/zh-CN.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
common: {
|
|
3
|
-
unauthorized: '需要身份验证。',
|
|
4
|
-
forbidden: '访问被拒绝。',
|
|
5
|
-
internalError: '服务器内部错误。',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
export { zhCNStrings };
|
|
9
|
-
//# sourceMappingURL=zh-CN.js.map
|
|
1
|
+
const r={common:{unauthorized:"\u9700\u8981\u8EAB\u4EFD\u9A8C\u8BC1\u3002",forbidden:"\u8BBF\u95EE\u88AB\u62D2\u7EDD\u3002",internalError:"\u670D\u52A1\u5668\u5185\u90E8\u9519\u8BEF\u3002"}};export{r as zhCNStrings};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locales/zh-CN.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings } from '../BackendStrings.ts';\n\nconst zhCNStrings: BackendStrings = {\n common: {\n unauthorized: '需要身份验证。',\n forbidden: '访问被拒绝。',\n internalError: '服务器内部错误。',\n },\n};\n\nexport { zhCNStrings };\n"],
|
|
5
|
+
"mappings": "AAEA,MAAMA,EAA8B,CAClC,OAAQ,CACN,aAAc,6CACd,UAAW,uCACX,cAAe",
|
|
6
|
+
"names": ["zhCNStrings"]
|
|
7
|
+
}
|
package/dist/locales/zh-TW.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh-TW.d.ts","sourceRoot":"","sources":["../../src/locales/zh-TW.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"zh-TW.d.ts","sourceRoot":"","sources":["../../src/locales/zh-TW.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,QAAA,MAAM,WAAW,EAAE,cAMlB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/locales/zh-TW.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
common: {
|
|
3
|
-
unauthorized: '需要驗證。',
|
|
4
|
-
forbidden: '存取被拒絕。',
|
|
5
|
-
internalError: '伺服器內部錯誤。',
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
export { zhTWStrings };
|
|
9
|
-
//# sourceMappingURL=zh-TW.js.map
|
|
1
|
+
const r={common:{unauthorized:"\u9700\u8981\u9A57\u8B49\u3002",forbidden:"\u5B58\u53D6\u88AB\u62D2\u7D55\u3002",internalError:"\u4F3A\u670D\u5668\u5167\u90E8\u932F\u8AA4\u3002"}};export{r as zhTWStrings};
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/locales/zh-TW.ts"],
|
|
4
|
+
"sourcesContent": ["import type { BackendStrings } from '../BackendStrings.ts';\n\nconst zhTWStrings: BackendStrings = {\n common: {\n unauthorized: '需要驗證。',\n forbidden: '存取被拒絕。',\n internalError: '伺服器內部錯誤。',\n },\n};\n\nexport { zhTWStrings };\n"],
|
|
5
|
+
"mappings": "AAEA,MAAMA,EAA8B,CAClC,OAAQ,CACN,aAAc,iCACd,UAAW,uCACX,cAAe",
|
|
6
|
+
"names": ["zhTWStrings"]
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rexezuge/i18n",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"description": "Backend string bundle with twelve locales and Accept-Language-aware lookup.",
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "tsc -p tsconfig.json",
|
|
34
|
+
"build": "tsc -p tsconfig.json && node ../../scripts/minify-dist.mjs",
|
|
35
35
|
"typecheck": "tsc -p tsconfig.test.json --noEmit",
|
|
36
36
|
"test": "vitest run"
|
|
37
37
|
}
|