Skip to content

Commit

Permalink
🐛 fix: 修正国际化问题
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Feb 15, 2023
1 parent adc347e commit 7b561c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ export const apiHeaderSel = (s: SiteStore): ApiHeader => {
};

const localeValueSel = (s: SiteStore, value: any) => {
if (!value) return;

if (value[s.locale.id]) return value[s.locale.id];

return value;
Expand Down

1 comment on commit 7b561c7

@vercel
Copy link

@vercel vercel bot commented on 7b561c7 Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.