@byline/i18n 4.12.0 → 4.13.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/admin/index.d.ts +2 -1
- package/dist/admin/index.js +5 -2
- package/dist/admin/th.js +535 -0
- package/package.json +8 -8
- package/src/admin/index.test.node.ts +3 -1
- package/src/admin/index.ts +4 -1
- package/src/admin/th.json +534 -0
package/dist/admin/index.d.ts
CHANGED
|
@@ -14,10 +14,11 @@ declare const de: NamespaceTranslations;
|
|
|
14
14
|
declare const it: NamespaceTranslations;
|
|
15
15
|
declare const zhCN: NamespaceTranslations;
|
|
16
16
|
declare const ko: NamespaceTranslations;
|
|
17
|
+
declare const th: NamespaceTranslations;
|
|
17
18
|
/** Locale codes for which a bundled translation ships in-package. */
|
|
18
19
|
export declare const bundledLocales: readonly LocaleCode[];
|
|
19
20
|
/** Re-exported as typed consts for plugin authors who want the literal-key autocomplete. */
|
|
20
|
-
export { de, en, es, fr, it, ko, zhCN };
|
|
21
|
+
export { de, en, es, fr, it, ko, th, zhCN };
|
|
21
22
|
export type AdminNamespaceTranslations = typeof enJson;
|
|
22
23
|
export interface AdminTranslationsOptions {
|
|
23
24
|
/**
|
package/dist/admin/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import es from "./es.js";
|
|
|
5
5
|
import fr from "./fr.js";
|
|
6
6
|
import it from "./it.js";
|
|
7
7
|
import ko from "./ko.js";
|
|
8
|
+
import th from "./th.js";
|
|
8
9
|
import zh_CN from "./zh-CN.js";
|
|
9
10
|
const admin_en = en;
|
|
10
11
|
const admin_fr = fr;
|
|
@@ -13,6 +14,7 @@ const admin_de = de;
|
|
|
13
14
|
const admin_it = it;
|
|
14
15
|
const zhCN = zh_CN;
|
|
15
16
|
const admin_ko = ko;
|
|
17
|
+
const admin_th = th;
|
|
16
18
|
const BUNDLES = {
|
|
17
19
|
en: admin_en,
|
|
18
20
|
fr: admin_fr,
|
|
@@ -20,7 +22,8 @@ const BUNDLES = {
|
|
|
20
22
|
de: admin_de,
|
|
21
23
|
it: admin_it,
|
|
22
24
|
'zh-CN': zhCN,
|
|
23
|
-
ko: admin_ko
|
|
25
|
+
ko: admin_ko,
|
|
26
|
+
th: admin_th
|
|
24
27
|
};
|
|
25
28
|
const bundledLocales = Object.freeze(Object.keys(BUNDLES));
|
|
26
29
|
function adminTranslations(options = {}) {
|
|
@@ -39,4 +42,4 @@ function adminTranslations(options = {}) {
|
|
|
39
42
|
}
|
|
40
43
|
return mergeTranslations(...partials);
|
|
41
44
|
}
|
|
42
|
-
export { adminTranslations, admin_de as de, admin_en as en, admin_es as es, admin_fr as fr, admin_it as it, admin_ko as ko, bundledLocales, zhCN };
|
|
45
|
+
export { adminTranslations, admin_de as de, admin_en as en, admin_es as es, admin_fr as fr, admin_it as it, admin_ko as ko, admin_th as th, bundledLocales, zhCN };
|