Skip to content

Commit

Permalink
feat(lang): add Slovenian display language
Browse files Browse the repository at this point in the history
  • Loading branch information
avidenic committed Apr 3, 2024
1 parent 36283f2 commit 2578825
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/context/LanguageContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type AvailableLocale =
| 'pt-BR'
| 'pt-PT'
| 'ru'
| 'sl'
| 'sq'
| 'sr'
| 'sv'
Expand Down Expand Up @@ -98,6 +99,10 @@ export const availableLanguages: AvailableLanguageObject = {
code: 'pt-PT',
display: 'Português (Portugal)',
},
sl: {
code: 'sl',
display: 'Slovenščina',
},
sq: {
code: 'sq',
display: 'Shqip',
Expand Down
2 changes: 2 additions & 0 deletions src/i18n/locale/sl.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
2 changes: 2 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise<any> => {
return import('../i18n/locale/pt_PT.json');
case 'ru':
return import('../i18n/locale/ru.json');
case 'sl':
return import('../i18n/locale/sl.json');
case 'sq':
return import('../i18n/locale/sq.json');
case 'sr':
Expand Down

0 comments on commit 2578825

Please sign in to comment.