Skip to content

Commit

Permalink
make create-config defaultFile use localeStructure
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Allegrini committed Feb 4, 2021
1 parent 76280e4 commit 176467a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/create-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const createConfig = (userConfig) => {
https://github.com/isaachinman/next-i18next/issues/358
*/
if (typeof combinedConfig.defaultNS === 'string') {
const defaultFile = `/${defaultLanguage}/${combinedConfig.defaultNS}.${localeExtension}`
const defaultFile = `/${localeStructure}.${localeExtension}`
const defaultNSPath = path.join(localePath, defaultFile)
const defaultNSExists = fs.existsSync(defaultNSPath)
if (!defaultNSExists) {
Expand Down

0 comments on commit 176467a

Please sign in to comment.