Skip to content

Commit

Permalink
Add Vietnamese in to translations (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
congnvp authored Sep 22, 2024
1 parent 2428ded commit 4f1044a
Show file tree
Hide file tree
Showing 3 changed files with 496 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 @@ -116,6 +116,7 @@ const currentYear = ref(new Date().getFullYear())
<a class="dropdown-item" href="#" @click.prevent="switchLanguage('en')"><span class="fi fi-us"></span> English</a>
<a class="dropdown-item" href="#" @click.prevent="switchLanguage('de')"><span class="fi fi-de"></span> Deutsch</a>
<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>
</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 @@ -2,6 +2,7 @@
import de from './translations/de.json';
import ru from './translations/ru.json';
import en from './translations/en.json';
import vi from './translations/vi.json';
import {createI18n} from "vue-i18n";

// Create i18n instance with options
Expand All @@ -18,7 +19,8 @@ const i18n = createI18n({
messages: {
"de": de,
"ru": ru,
"en": en
"en": en,
"vi": vi
}
});

Expand Down
Loading

0 comments on commit 4f1044a

Please sign in to comment.