@ -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');
}