snapshot/lib/assets/SnapshotHelper.swift in fastlane-2.118.0.beta.20190310200100 vs snapshot/lib/assets/SnapshotHelper.swift in fastlane-2.118.0.beta.20190311200036
- old
+ new
@@ -113,11 +113,11 @@
locale = try String(contentsOf: path, encoding: .utf8).trimmingCharacters(in: trimCharacterSet)
} catch {
print("Couldn't detect/set locale...")
}
- if locale.isEmpty {
+ if locale.isEmpty && !deviceLanguage.isEmpty {
locale = Locale(identifier: deviceLanguage).identifier
}
if !locale.isEmpty {
app.launchArguments += ["-AppleLocale", "\"\(locale)\""]
@@ -275,6 +275,6 @@
}
}
// Please don't remove the lines below
// They are used to detect outdated configuration files
-// SnapshotHelperVersion [1.13]
+// SnapshotHelperVersion [1.14]