mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
feat(lang): add support for swedish language
This commit is contained in:
@@ -61,6 +61,10 @@ const availableLanguages: AvailableLanguageObject = {
|
||||
code: 'sr',
|
||||
display: 'Serbian',
|
||||
},
|
||||
sv: {
|
||||
code: 'sv',
|
||||
display: 'Swedish',
|
||||
},
|
||||
};
|
||||
|
||||
const LanguagePicker: React.FC = () => {
|
||||
|
@@ -11,7 +11,8 @@ export type AvailableLocales =
|
||||
| 'es'
|
||||
| 'it'
|
||||
| 'pt-BR'
|
||||
| 'sr';
|
||||
| 'sr'
|
||||
| 'sv';
|
||||
|
||||
interface LanguageContextProps {
|
||||
locale: AvailableLocales;
|
||||
|
@@ -37,6 +37,8 @@ const loadLocaleData = (locale: string): Promise<any> => {
|
||||
return import('../i18n/locale/pt_BR.json');
|
||||
case 'sr':
|
||||
return import('../i18n/locale/sr.json');
|
||||
case 'sv':
|
||||
return import('../i18n/locale/sv.json');
|
||||
default:
|
||||
return import('../i18n/locale/en.json');
|
||||
}
|
||||
|
Reference in New Issue
Block a user