mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-01 12:18:35 -05:00
feat(frontend): added more localized strings
This commit is contained in:
@@ -13,10 +13,13 @@ import { LanguageContext, AvailableLocales } from '../context/LanguageContext';
|
||||
import Head from 'next/head';
|
||||
import Toast from '../components/Toast';
|
||||
|
||||
const loadLocaleData = (locale: string) => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const loadLocaleData = (locale: string): Promise<any> => {
|
||||
switch (locale) {
|
||||
case 'ja':
|
||||
return import('../i18n/locale/ja.json');
|
||||
case 'fr':
|
||||
return import('../i18n/locale/fr.json');
|
||||
default:
|
||||
return import('../i18n/locale/en.json');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user