Skip to content

Commit

Permalink
feat(Translation): Add Swahili language translation to the project (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
orama254 committed Jul 15, 2021
1 parent b281a79 commit e93f577
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions components/LanguageDropDown.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export const languageSupports = [
label: 'Indonesia',
route: '/id',
},
{
label: 'Swahili',
route: '/sw',
},
]

export function LanguageDropDown({ posts }) {
Expand Down
2 changes: 1 addition & 1 deletion next-i18next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
i18n: {
defaultLocale: 'en',
locales: ['en', 'fr', 'es', 'it', 'fil', 'tr', 'nl', 'de', 'pt', 'id'],
locales: ['en', 'fr', 'es', 'it', 'fil', 'tr', 'nl', 'de', 'pt', 'id', 'sw'],
},
}

0 comments on commit e93f577

Please # to comment.