Skip to content

Commit

Permalink
Add French in to translations (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
sannier3 authored Feb 6, 2025
1 parent 3478645 commit 7557a6e
Show file tree
Hide file tree
Showing 3 changed files with 519 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ const currentYear = ref(new Date().getFullYear())
<a class="dropdown-item" href="#" @click.prevent="switchLanguage('ru')"><span class="fi fi-ru"></span> Русский</a>
<a class="dropdown-item" href="#" @click.prevent="switchLanguage('vi')"><span class="fi fi-vi"></span> Tiếng Việt</a>
<a class="dropdown-item" href="#" @click.prevent="switchLanguage('zh')"><span class="fi fi-cn"></span> 中文</a>
<a class="dropdown-item" href="#" @click.prevent="switchLanguage('fr')"><span class="fi fi-fr"></span> Français</a>
</div>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/lang/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ru from './translations/ru.json';
import en from './translations/en.json';
import vi from './translations/vi.json';
import zh from './translations/zh.json';
import fr from './translations/fr.json';
import {createI18n} from "vue-i18n";

// Create i18n instance with options
Expand All @@ -22,7 +23,8 @@ const i18n = createI18n({
"ru": ru,
"en": en,
"vi": vi,
"zh": zh
"zh": zh,
"fr": fr
}
});

Expand Down
Loading

0 comments on commit 7557a6e

Please sign in to comment.