Skip to content

Commit c413990

Browse files
authored
Merge pull request #839 from ribilynn/Use-current-locale-when-overrideLocale-is-missing
Use current locale when overrideLocale is missing
2 parents 5721c1a + b0332ae commit c413990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/RswiftResources/Integrations/StringResource+Integrations.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ extension String {
1414
case let .hosting(bundle):
1515
// With fallback to developmentValue
1616
let format = NSLocalizedString(key.description, tableName: tableName, bundle: bundle, value: developmentValue ?? "", comment: "")
17-
self = String(format: format, locale: overrideLocale, arguments: arguments)
17+
self = String(format: format, locale: overrideLocale ?? Locale.current, arguments: arguments)
1818

1919
case let .selected(bundle, locale):
2020
// Don't use developmentValue with selected bundle/locale

0 commit comments

Comments
 (0)