Skip to content

Commit

Permalink
feat(lang): add Polish display language (#2261)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCatLady committed Dec 2, 2021
1 parent 92732fc commit c760cea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/context/LanguageContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export type AvailableLocale =
| 'hu'
| 'nb-NO'
| 'nl'
| 'pl'
| 'pt-BR'
| 'pt-PT'
| 'ru'
Expand Down Expand Up @@ -72,6 +73,10 @@ export const availableLanguages: AvailableLanguageObject = {
code: 'nb-NO',
display: 'Norsk Bokmål',
},
pl: {
code: 'pl',
display: 'Polski',
},
'pt-BR': {
code: 'pt-BR',
display: 'Português (Brasil)',
Expand All @@ -94,19 +99,19 @@ export const availableLanguages: AvailableLanguageObject = {
},
sr: {
code: 'sr',
display: 'српски језик',
display: 'српски језик',
},
ja: {
code: 'ja',
display: '日本語',
},
'zh-TW': {
code: 'zh-TW',
display: '繁體中文',
display: '繁體中文',
},
'zh-CN': {
code: 'zh-CN',
display: '简体中文',
display: '简体中文',
},
};

Expand Down
2 changes: 2 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise<any> => {
return import('../i18n/locale/nb_NO.json');
case 'nl':
return import('../i18n/locale/nl.json');
case 'pl':
return import('../i18n/locale/pl.json');
case 'pt-BR':
return import('../i18n/locale/pt_BR.json');
case 'pt-PT':
Expand Down

0 comments on commit c760cea

Please sign in to comment.