Add I18n interface for mustache templates

This commit adds an interface that allows mustache templates to get I18n
translation strings, transform any arguments that may be present in
them, and then render them on the frontend.

This is our first real step to getting internationalizing the Gollum
frontend.
This commit is contained in:
Benjamin Willems
2021-02-21 19:56:04 -08:00
committed by benjamin wil
parent f3e17bb6a6
commit a46852504c
7 changed files with 237 additions and 2 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ require 'shoulda'
require 'mocha/setup'
require 'fileutils'
require 'minitest/reporters'
require 'minitest/spec'
require 'twitter_cldr'
require 'tmpdir'
@@ -93,4 +94,4 @@ def context(*args, &block)
klass.class_eval &block
end
$contexts = []
$contexts = []