Skip to content

Commit

Permalink
🌐 Add hr locale 🇭🇷
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnart committed Jul 23, 2023
1 parent 6658c05 commit b7077f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion next-i18next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ module.exports = {
'sk',
'no',
'tr',
'lv'
'lv',
'hr'
],

localeDetection: true,
Expand Down
7 changes: 7 additions & 0 deletions src/tools/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@ export const languages: Language[] = [
translatedName: 'Latvian',
emoji: '🇱🇻',
},
// Croatian
{
shortName: 'hr',
originalName: 'Hrvatski',
translatedName: 'Croatian',
emoji: '🇭🇷',
},
];

export const getLanguageByCode = (code: string | null) =>
Expand Down

0 comments on commit b7077f8

Please sign in to comment.