Skip to content

Commit

Permalink
Updated to version 3 of Lingo
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavkovac committed Aug 28, 2017
1 parent d55c446 commit dbbf11a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ let package = Package(
name: "LingoProvider",
dependencies: [
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 2),
.Package(url: "https://github.com/miroslavkovac/Lingo.git", majorVersion: 2),
.Package(url: "https://github.com/miroslavkovac/Lingo.git", majorVersion: 3),
]
)
2 changes: 1 addition & 1 deletion Sources/LingoProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public struct Provider: Vapor.Provider {
throw ConfigError.missing(key: ["defaultLocale"], file: "lingo", desiredType: String.self)
}

self.lingo = Lingo(rootPath: rootPath, defaultLocale: defaultLocale)
self.lingo = try Lingo(rootPath: rootPath, defaultLocale: defaultLocale)
}

public func boot(_ droplet: Droplet) throws {
Expand Down

0 comments on commit dbbf11a

Please sign in to comment.