Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 17, 2025
1 parent ecb90ab commit 016971c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { ref, onMounted } from 'vue'
import { onMounted, ref } from 'vue'
const currentLang = ref('chinese_simplified')
Expand All @@ -9,11 +9,12 @@ onMounted(() => {
}, 3000)
})
const switchLang = () => {
function switchLang() {
if (translate.language.getCurrent() === 'chinese_simplified') {
translate.changeLanguage('english')
currentLang.value = 'english'
} else {
}
else {
translate.changeLanguage('chinese_simplified')
currentLang.value = 'chinese_simplified'
}
Expand All @@ -33,4 +34,4 @@ const switchLang = () => {
font-size: 14px;
cursor: pointer;
}
</style>
</style>
2 changes: 1 addition & 1 deletion packages/docs/fluent-editor/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineConfig({
],
},
{
component: 'TranslateComponent'
component: 'TranslateComponent',
},
],
socialLinks: [
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/fluent-editor/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import type { Theme } from 'vitepress'
import DemoPreview, { useComponents } from '@vitepress-code-preview/container'
import DefaultTheme from 'vitepress/theme'
import * as Toast from 'vue-toastification'
import TranslateComponent from '../components/TranslateComponent.vue'
import { insertBaiduScript } from './insert-baidu-script'
import { inertDepsVersion } from './insert-deps-version'
import { insertPeterCatAssistant } from './insert-petercat-assistant'
import { insertTranslate } from './insert-translate'
import TranslateComponent from '../components/TranslateComponent.vue'
import '@vitepress-code-preview/container/dist/style.css'
import './style.css'
import 'vue-toastification/dist/index.css'
Expand Down

0 comments on commit 016971c

Please sign in to comment.