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

Commit e70177c

Browse files
authored
Merge pull request #13 from g-Off/fixed-inits
Fixed inits again
2 parents 04aebc6 + 3affcb2 commit e70177c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Liquid/Template.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public final class Template {
2727
public convenience init(sourceURL: URL, encoder: Encoder = Encoder(), environment: Environment = Environment(), translations: [String: String]? = nil) throws {
2828
let source = try String(contentsOf: sourceURL)
2929
let fileSystem = LocalFileSystem(baseURL: sourceURL.deletingLastPathComponent())
30-
self.init(source: source, fileSystem: fileSystem, encoder: encoder, environment: environment)
30+
self.init(source: source, fileSystem: fileSystem, encoder: encoder, environment: environment, translations: translations)
3131
}
3232

3333
public convenience init(source: String, encoder: Encoder = Encoder(), environment: Environment = Environment(), fileSystem: FileSystem? = nil, translations: [String: String]? = nil) {
@@ -36,7 +36,7 @@ public final class Template {
3636
throw RuntimeError.reason("Invalid filesystem")
3737
}
3838
}
39-
self.init(source: source, fileSystem: fileSystem ?? ThrowingFileSystem(), encoder: encoder, environment: environment)
39+
self.init(source: source, fileSystem: fileSystem ?? ThrowingFileSystem(), encoder: encoder, environment: environment, translations: translations)
4040
}
4141

4242
init(source: String, context: Context) {

0 commit comments

Comments
 (0)