Skip to content

Commit

Permalink
Update _app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl authored Oct 19, 2018
1 parent 942caa0 commit b56aa99
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions example/nextjs/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ export default class MyApp extends App {
<button
type="button"
onClick={() => {
const lng = i18n.languages[0] === 'en' ? 'de' : 'en';
i18n.changeLanguage(lng);
i18n.changeLanguage(i18n.languages[0] === 'en' ? 'de' : 'en');
}}
>
Change locale
Expand Down

0 comments on commit b56aa99

Please sign in to comment.