Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
jan
/
mustache.js
espelhamento de
https://github.com/janl/mustache.js
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
46
Wiki
Atividade
Ver código fonte
made gettext return the right thing for translation-hint mode
tags/0.4.0
Ben Cherry
15 anos atrás
pai
077b7b5eaf
commit
deff91a4e0
1 arquivos alterados
com
6 adições
e
2 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+6
-2
test/mustache_spec.rb
+ 6
- 2
test/mustache_spec.rb
Ver arquivo
@@ -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
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar