1
jhzh
2025-07-28 a8b0eb32d97e7a540692a8a29f610fe76d67ef74
src/components/Language/index.vue
@@ -36,28 +36,27 @@
      // 多语言配置
      actions: [
        {
          text: "日本語",
          lang: "ja"
        },
        {
          text: "English",
          icon: require("@/assets/ico/english.png"),
          lang: "en",
          lang: "en"
        },
        {
          text: "繁体中文",
          icon: require("@/assets/ico/tw.png"),
          lang: "zh-TW",
        },
        { text: "हिंदी", icon: require("@/assets/ico/india.png"), lang: "hi" },
        { text: "한국인", icon: require("@/assets/ico/india.png"), lang: "ko" },
        {
          text: "ภาษาไทย",
          icon: require("@/assets/ico/india.png"),
          lang: "th",
        },
        {
          text: "日本語にほんご",
          icon: require("@/assets/ico/india.png"),
          lang: "ja",
        },
      ],
        // {
        //   text: "简体中文",
        //   lang: "zh-CN",
        // },
        // { text: "हिंदी", lang: "hi" },
        // {
        //   text: "Deutsch",
        //   lang: "de",
        // }, //德语
        // {
        //   text: "Français",
        //   lang: "fr",
        // }, //法语
      ]
    };
  },
  mounted() {
@@ -68,7 +67,7 @@
  },
  methods: {
    getText(val = "hi") {
      let arr = this.actions.filter((item) => item.lang === val);
      let arr = this.actions.filter(item => item.lang === val);
      return arr[0].text;
    },
    qkclick(e) {
@@ -79,8 +78,8 @@
    },
    popClose() {
      this.settingDialog = false;
    },
  },
    }
  }
};
</script>
@@ -120,4 +119,4 @@
  font-weight: 600;
  margin: 40px 20px 0 20px;
}
</style>
</style>