Skip to content

Commit a8aca40

Browse files
authored
Merge pull request #66 from toshitanian/master
Sort keys when output is not flat
2 parents f17c6fc + 8e0bda8 commit a8aca40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const extractMessage = async (
121121

122122
const fomattedLocaleMap: object = flat
123123
? sortKeys(localeMap, { deep: true })
124-
: unflatten(sortKeys(localeMap), { object: true })
124+
: sortKeys(unflatten(localeMap, { object: true }), { deep: true })
125125

126126
const fn = isJson(format) ? writeJson : writeYaml
127127

0 commit comments

Comments
 (0)