From 796710bade292e09642f5b2f468752338ec8c2b3 Mon Sep 17 00:00:00 2001 From: Tom Lokhorst Date: Sun, 3 Nov 2024 13:44:31 +0100 Subject: [PATCH] Sort locales in generated strings comment, so it is stable --- Sources/RswiftGenerators/StringsTable+Generator.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/RswiftGenerators/StringsTable+Generator.swift b/Sources/RswiftGenerators/StringsTable+Generator.swift index 9ac86788..3706d305 100644 --- a/Sources/RswiftGenerators/StringsTable+Generator.swift +++ b/Sources/RswiftGenerators/StringsTable+Generator.swift @@ -408,7 +408,7 @@ private struct StringWithParams { } let locales = values.compactMap { $0.0.localeDescription } - results.append("Locales: \(locales.joined(separator: ", "))") + results.append("Locales: \(locales.sorted().joined(separator: ", "))") } return results