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
1 change: 1 addition & 0 deletions ui/src/components/language-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {

const languages = [
{ code: 'en', name: 'English' },
{ code: 'es', name: 'Español' },
{ code: 'zh', name: '中文' },
]

Expand Down
4 changes: 4 additions & 0 deletions ui/src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ import LanguageDetector from 'i18next-browser-languagedetector'
import { initReactI18next } from 'react-i18next'

import en from './locales/en.json'
import es from './locales/es.json'
import zh from './locales/zh.json'

const resources = {
en: {
translation: en,
},
es: {
translation: es,
},
zh: {
translation: zh,
},
Expand Down
Loading