Skip to content

Commit

Permalink
fix: default locale
Browse files Browse the repository at this point in the history
  • Loading branch information
kokororin committed Apr 16, 2020
1 parent eae94ee commit a3a423c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/containers/IllustContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class IllustContainer extends React.Component<
try {
return (
<div className={classes.illust}>
{/* <div className={classes.image}>{this.renderImage()}</div> */}
<div className={classes.image}>{this.renderImage()}</div>
<div className={classes.caption}>
{typeof this.item.caption === 'string' &&
(this.item.caption as string)
Expand Down
2 changes: 1 addition & 1 deletion src/locale/chooseLocale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const chooseLocale = (language: string, dispatch: Dispatch) => {
addLocaleData(found.localeData);
const messages = found.messages;

Storage.set('lang', lang);
Storage.set('lang', isFallback ? 'en' : lang);

dispatch(
LocaleActions.setLocale({
Expand Down

0 comments on commit a3a423c

Please sign in to comment.