Skip to content

Commit

Permalink
Exposing dataSource property as it is passed in the Lingo initializer.
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavkovac committed Oct 19, 2017
1 parent a4e8ffa commit 9f840f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Lingo/Lingo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public typealias LocaleIdentifier = String
public final class Lingo {

public let defaultLocale: LocaleIdentifier
public let dataSource: LocalizationDataSource

private let model: LocalizationsModel

Expand All @@ -22,6 +23,7 @@ public final class Lingo {
/// Initializes Lingo with a `LocalizationDataSource`.
/// - `defaultLocale` will be used as a fallback when no localizations are available for a requested locale.
public init(dataSource: LocalizationDataSource, defaultLocale: LocaleIdentifier) throws {
self.dataSource = dataSource
self.defaultLocale = defaultLocale
self.model = LocalizationsModel()

Expand Down

0 comments on commit 9f840f8

Please sign in to comment.