@geekron/strapi 0.3.6 → 0.3.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../i18n/index.ts"],"names":[],"mappings":"AAiJA;;GAEG;AACH,UAAU,kBAAkB;IAC3B,mCAAmC;IACnC,UAAU,CAAC,EAAE,KAAK,CAAC;QAClB,wCAAwC;QACxC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC7B,wBAAwB;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC,CAAC;IACH,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,kBAAkB,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA+B5F,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../i18n/index.ts"],"names":[],"mappings":"AAiJA;;GAEG;AACH,UAAU,kBAAkB;IAC3B,mCAAmC;IACnC,UAAU,CAAC,EAAE,KAAK,CAAC;QAClB,wCAAwC;QACxC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC7B,wBAAwB;QACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC,CAAC;IACH,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,kBAAkB,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAyC5F,CAAC"}
@@ -98,8 +98,15 @@ var deepMerge = (target, source) => {
98
98
  var translations = (config) => {
99
99
  const { extensions = [], locales: specifiedLocales } = config || {};
100
100
  const defaultModules = import.meta.glob("./translations/**/*.json", { eager: true, import: "default" });
101
+ console.log("defaultModules", defaultModules);
102
+ const test1 = import.meta.glob("../../i18n/translations/**/*.json", { eager: true, import: "default" });
103
+ console.log("test1", test1);
104
+ const test2 = import.meta.glob("/node_modules/@geekron/strapi/i18n/translations/**/*.json", { eager: true, import: "default" });
105
+ console.log("test2", test2);
101
106
  const allModuleSources = [
102
107
  { modules: defaultModules, basePath: "./translations" },
108
+ { modules: test1, basePath: "../../i18n/translations" },
109
+ { modules: test2, basePath: "/node_modules/@geekron/strapi/i18n/translations" },
103
110
  ...extensions
104
111
  ];
105
112
  const allLocales = specifiedLocales || [
@@ -65,8 +65,15 @@ var deepMerge = (target, source) => {
65
65
  var translations = (config) => {
66
66
  const { extensions = [], locales: specifiedLocales } = config || {};
67
67
  const defaultModules = import.meta.glob("./translations/**/*.json", { eager: true, import: "default" });
68
+ console.log("defaultModules", defaultModules);
69
+ const test1 = import.meta.glob("../../i18n/translations/**/*.json", { eager: true, import: "default" });
70
+ console.log("test1", test1);
71
+ const test2 = import.meta.glob("/node_modules/@geekron/strapi/i18n/translations/**/*.json", { eager: true, import: "default" });
72
+ console.log("test2", test2);
68
73
  const allModuleSources = [
69
74
  { modules: defaultModules, basePath: "./translations" },
75
+ { modules: test1, basePath: "../../i18n/translations" },
76
+ { modules: test2, basePath: "/node_modules/@geekron/strapi/i18n/translations" },
70
77
  ...extensions
71
78
  ];
72
79
  const allLocales = specifiedLocales || [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekron/strapi",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "极客领航网站管理插件",
5
5
  "type": "commonjs",
6
6
  "author": "Geekron",