File: example.coffee

package info (click to toggle)
ruby-gettext-i18n-rails-js 2.0.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 180 kB
  • sloc: ruby: 927; javascript: 33; makefile: 11
file content (15 lines) | stat: -rw-r--r-- 291 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pepito = ->
  string = "this" + __('json') + 'should be translated'
  alert(n__('item', 'items', 3))

example_template( __('Hello {yourname}'), { yourname: 'bob' })

object =
 one: N__('new-trans')
 two: s__('namespaced', 'trans')

"#{ __("Hello\nBuddy") }"

"""
  #{ __("Multi-line") }
"""