Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/i18n/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const defaultI18nOptions: InitOptions = {
lookupLocalStorage: "lng",
order: ["cookie", "localStorage", "header"],
},
fallbackLng: "en",
fallbackLng: "vi",
interpolation: {
escapeValue: false,
},
Expand Down
7 changes: 7 additions & 0 deletions src/i18n/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,11 @@ export const languages: Language[] = [
ltr: true,
date_locale: ru,
},
{
code: "vi",
display_name: "Tiếng Việt",
ltr: true,
date_locale: enUS,
}

]
6 changes: 5 additions & 1 deletion src/i18n/translations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ import zhCN from "./zhCN.json"
import fa from "./fa.json"
import cs from "./cs.json"
import ru from "./ru.json"
import vi from "./vi.json"

export default {
vi: {
translation: vi
},
bg: {
translation: bg,
},
Expand Down Expand Up @@ -83,5 +87,5 @@ export default {
},
ru: {
translation: ru,
},
}
}
Loading