feat(RES-35): Force JSONEncoder output formatting with .sortedKeys (#15)
All checks were successful
gitea-openium/resgen.swift/pipeline/head This commit looks good
All checks were successful
gitea-openium/resgen.swift/pipeline/head This commit looks good
Reviewed-on: #15
This commit is contained in:
@ -150,7 +150,7 @@ enum StringsFileGenerator {
|
||||
static func generateXcStringsFileContentFromRootObject(rootObject: Root) -> String {
|
||||
do {
|
||||
let encoder = JSONEncoder()
|
||||
encoder.outputFormatting = [.prettyPrinted]
|
||||
encoder.outputFormatting = [.prettyPrinted, .sortedKeys]
|
||||
|
||||
let json = try encoder.encode(rootObject)
|
||||
|
||||
|
Reference in New Issue
Block a user