Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #12 from g-Off/add-translations-to-init
Browse files Browse the repository at this point in the history
Added missing translations param to Template init
  • Loading branch information
g-Off authored Nov 22, 2019
2 parents 954bc7a + 9da7f71 commit 04aebc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Liquid/Template.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public final class Template {
self.init(source: source, fileSystem: fileSystem, encoder: encoder, environment: environment)
}

public convenience init(source: String, encoder: Encoder = Encoder(), environment: Environment = Environment(), fileSystem: FileSystem? = nil) {
public convenience init(source: String, encoder: Encoder = Encoder(), environment: Environment = Environment(), fileSystem: FileSystem? = nil, translations: [String: String]? = nil) {
struct ThrowingFileSystem: FileSystem {
func read(path: String) throws -> String {
throw RuntimeError.reason("Invalid filesystem")
Expand Down

0 comments on commit 04aebc6

Please sign in to comment.