Skip to content

Commit

Permalink
fix: detect language from request headers accept-language (#4656)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrodMFlesch committed Jan 2, 2024
1 parent 00d8480 commit 69a9944
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const RelationshipField: React.FC<Props> = (props) => {
}
}
} else {
setErrorLoading(t('errors:unspecific'))
setErrorLoading(t('error:unspecific'))
}
}
}, Promise.resolve())
Expand Down
4 changes: 2 additions & 2 deletions packages/payload/src/translations/defaultOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import translations from './index'
export const defaultOptions: InitOptions = {
debug: false,
detection: {
caches: ['cookie', 'localStorage'],
caches: ['header', 'cookie', 'localStorage'],
lookupCookie: 'lng',
lookupLocalStorage: 'lng',
order: ['cookie', 'localStorage'],
order: ['header', 'cookie', 'localStorage'],
},
fallbackLng: 'en',
interpolation: {
Expand Down

0 comments on commit 69a9944

Please sign in to comment.