yh-i18n 1.2.5 → 1.2.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.
package/index.js CHANGED
@@ -29,8 +29,8 @@ const localLang = navLang === "zh_CN" || navLang === "en_US" ? navLang : false;
29
29
  const initlang = localStorage.local || localLang || "zh_CN";
30
30
 
31
31
  export let i18n = null;
32
- const isDev = import.meta.env.DEV;
33
32
  window.translateReady = !!localStorage.translateReady || false;
33
+ const isDev = window.translateReady;
34
34
  function addTranslate(key) {
35
35
  if (key.indexOf("vxe") === -1) {
36
36
  try {
package/language.vue CHANGED
@@ -33,7 +33,7 @@ import { useI18nStore, ct } from "yh-i18n";
33
33
  import { storeToRefs } from "pinia";
34
34
  import { ref, watch } from "vue";
35
35
 
36
- const isDev = ref(import.meta.env.DEV);
36
+ const isDev = ref(window.translateReady);
37
37
 
38
38
  const i18nStore = useI18nStore();
39
39
  const isCollect = ref(window.translateReady);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yh-i18n",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "对于国际化的封装",
5
5
  "main": "index.js",
6
6
  "scripts": {