Skip to content

Commit

Permalink
Update genrated snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
liamnichols committed Apr 12, 2024
1 parent 86b9e81 commit 816dc2c
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ extension String {
}
}

internal init(formatSpecifiers: FormatSpecifiers) {
internal init(formatSpecifiers: FormatSpecifiers, locale: Locale? = nil) {
self.init(
localized: formatSpecifiers.key,
defaultValue: formatSpecifiers.defaultValue,
table: formatSpecifiers.table,
bundle: .from(description: formatSpecifiers.bundle),
locale: formatSpecifiers.locale
locale: locale ?? formatSpecifiers.locale
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ extension String {
}
}

internal init(localizable: Localizable) {
internal init(localizable: Localizable, locale: Locale? = nil) {
self.init(
localized: localizable.key,
defaultValue: localizable.defaultValue,
table: localizable.table,
bundle: .from(description: localizable.bundle),
locale: localizable.locale
locale: locale ?? localizable.locale
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ extension String {
}
}

internal init(multiline: Multiline) {
internal init(multiline: Multiline, locale: Locale? = nil) {
self.init(
localized: multiline.key,
defaultValue: multiline.defaultValue,
table: multiline.table,
bundle: .from(description: multiline.bundle),
locale: multiline.locale
locale: locale ?? multiline.locale
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ extension String {
}
}

internal init(positional: Positional) {
internal init(positional: Positional, locale: Locale? = nil) {
self.init(
localized: positional.key,
defaultValue: positional.defaultValue,
table: positional.table,
bundle: .from(description: positional.bundle),
locale: positional.locale
locale: locale ?? positional.locale
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ extension String {
}
}

internal init(simple: Simple) {
internal init(simple: Simple, locale: Locale? = nil) {
self.init(
localized: simple.key,
defaultValue: simple.defaultValue,
table: simple.table,
bundle: .from(description: simple.bundle),
locale: simple.locale
locale: locale ?? simple.locale
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ extension String {
}
}

internal init(substitution: Substitution) {
internal init(substitution: Substitution, locale: Locale? = nil) {
self.init(
localized: substitution.key,
defaultValue: substitution.defaultValue,
table: substitution.table,
bundle: .from(description: substitution.bundle),
locale: substitution.locale
locale: locale ?? substitution.locale
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ extension String {
}
}

internal init(variations: Variations) {
internal init(variations: Variations, locale: Locale? = nil) {
self.init(
localized: variations.key,
defaultValue: variations.defaultValue,
table: variations.table,
bundle: .from(description: variations.bundle),
locale: variations.locale
locale: locale ?? variations.locale
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ extension String {
}
}

package init(localizable: Localizable) {
package init(localizable: Localizable, locale: Locale? = nil) {
self.init(
localized: localizable.key,
defaultValue: localizable.defaultValue,
table: localizable.table,
bundle: .from(description: localizable.bundle),
locale: localizable.locale
locale: locale ?? localizable.locale
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ extension String {
}
}

public init(localizable: Localizable) {
public init(localizable: Localizable, locale: Locale? = nil) {
self.init(
localized: localizable.key,
defaultValue: localizable.defaultValue,
table: localizable.table,
bundle: .from(description: localizable.bundle),
locale: localizable.locale
locale: locale ?? localizable.locale
)
}
}
Expand Down

0 comments on commit 816dc2c

Please sign in to comment.