瀏覽代碼

made gettext return the right thing for translation-hint mode

tags/0.4.0
Ben Cherry 15 年之前
父節點
當前提交
deff91a4e0
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. +6
    -2
      test/mustache_spec.rb

+ 6
- 2
test/mustache_spec.rb 查看文件

@@ -30,8 +30,12 @@ describe "mustache" do
mustache = File.read(__DIR__ + "/../mustache.js")
stubbed_gettext = <<-JS
// Stubbed gettext translation method for {{_i}}{{/i}} tags in Mustache.
function _(text) {
return text;
function _(params) {
if (typeof params === "string") {
return params
}

return params.text;
}
JS



Loading…
取消
儲存