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

Commit 04aebc6

Browse files
authored
Merge pull request #12 from g-Off/add-translations-to-init
Added missing translations param to Template init
2 parents 954bc7a + 9da7f71 commit 04aebc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Liquid/Template.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public final class Template {
3030
self.init(source: source, fileSystem: fileSystem, encoder: encoder, environment: environment)
3131
}
3232

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

0 commit comments

Comments
 (0)