ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Gengojs

by gengojs ALL

The official snippets for gengo.js

Labels i18n, snippets, l10n

Details

Installs

  • Total 59
  • Win 36
  • Mac 16
  • Linux 7
Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

gengojs-sublime-snippets

The official snippets for gengo.js http://www.gengojs.com/

Install

Package Control:

The easiest way to install gengo.js snippets is through Package Control. Once you install Package Control, restart Sublime Text 2(3) and open the Command Palette (Command+Shift+P on OS X, Ctrl+Shift+P on Linux/Windows). Select Package Control: Install Package, then search and select Gengojs. Once intstalled, Package Control will keep you up to date whenever a new version is released.

GitHub:

Download the latest source from GitHub and copy the folder to your Sublime Text Packages directory.

Git:

Clone the repository in your Sublime Text Packages/User directory:

git clone https://github.com/iwatakeshi/gengojs-sublime-snippets.git

The Packages directory is located at:

OS X:

~/Library/Application Support/Sublime Text 2(3)/Packages/User

Windows:

%APPDATA%\Sublime Text 2(3)\Packages\User

Portable version:

Sublime Text 2(3)\Data\Packages\User\Gengojs

Usage:

Just type:

__(      -->    __(phrase, [arguments])
__l      -->    __l("locale")
__date   -->    __l("locale").date(options).format(date)
__time   -->    __l("locale").time(options).format(time)
__number -->    __l("locale").number(options).format(number)
__moment -->    __l("locale").moment(string)

or open the Command Palette, type gengo and select the desired snippet.

Currently, the snippet works in Jade (.jade) and Handlebars (.hbs). To add support for your favorite template, just fork and pull!