Skip to content

Commit

Permalink
Merge branch 'main' of github.com:mac-cain13/R.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlokhorst committed Sep 10, 2023
2 parents dee1bf2 + c413990 commit 6932c5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ extension String {
case let .hosting(bundle):
// With fallback to developmentValue
let format = NSLocalizedString(key.description, tableName: tableName, bundle: bundle, value: developmentValue ?? "", comment: "")
self = String(format: format, locale: overrideLocale, arguments: arguments)
self = String(format: format, locale: overrideLocale ?? Locale.current, arguments: arguments)

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

0 comments on commit 6932c5b

Please sign in to comment.