-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New: dark mode New: internationalization New: error page
- Loading branch information
1 parent
3ec0943
commit 31b777a
Showing
78 changed files
with
1,686 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import i18n from 'i18next'; | ||
import { initReactI18next } from 'react-i18next'; | ||
|
||
import Backend from 'i18next-http-backend'; | ||
// don't want to use this? | ||
// have a look at the Quick start guide | ||
// for passing in lng and translations on init | ||
|
||
i18n | ||
.use(Backend) | ||
// pass the i18n instance to react-i18next. | ||
.use(initReactI18next) | ||
// init i18next | ||
.init({ | ||
lng: 'en', | ||
fallbackLng: 'en', | ||
debug: true, | ||
interpolation: { | ||
escapeValue: false, | ||
}, | ||
backend: { | ||
loadPath: `${process.env.NEXT_PUBLIC_FRONT_URL}/static/locales/{{lng}}/translation.json`, | ||
}, | ||
}); | ||
|
||
|
||
export default i18n; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.