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
3 changes: 2 additions & 1 deletion redisinsight/ui/src/i18n/i18n.constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Languages we ship translations for; add a code + matching locales/<code>.json.
export const SUPPORTED_LANGUAGES = ['en', 'bg'] as const
export const SUPPORTED_LANGUAGES = ['en', 'bg', 'ru'] as const

export type SupportedLanguage = (typeof SUPPORTED_LANGUAGES)[number]

Expand All @@ -13,4 +13,5 @@ export const DEFAULT_NAMESPACE = 'translation'
export const LANGUAGE_NAMES: Record<SupportedLanguage, string> = {
en: 'English',
bg: 'Български',
ru: 'Русский',
}
2 changes: 2 additions & 0 deletions redisinsight/ui/src/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
} from './i18n.constants'
import en from './locales/en.json'
import bg from './locales/bg.json'
import ru from './locales/ru.json'

// TODO: Temporary let `?lang=bg` force the initial language so
// translations can be eyeballed before the real language switcher is introduced.
Expand All @@ -20,6 +21,7 @@
resources: {
en: { translation: en },
bg: { translation: bg },
ru: { translation: ru },

Check failure on line 24 in redisinsight/ui/src/i18n/i18n.ts

View workflow job for this annotation

GitHub Actions / lint / ESLint

Replace `↹` with `····`
},
lng: queryLanguage ?? DEFAULT_LANGUAGE,
fallbackLng: DEFAULT_LANGUAGE,
Expand Down
Loading
Loading