New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gengojs

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gengojs

the best i18n middleware for Express

  • 0.3.57
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
decreased by-9.09%
Maintainers
1
Weekly downloads
 
Created
Source

gengo.js

Build Status Dependency Status License Status Downloads Version

NPM

##News Flash

10/30/14

The site for gengo.js has been improved! Of course, typos may exist and will be fixed along the way. This means that I will not translate it until the site seems stable enough.

Visit Gengojs.com for installation, configuration, and documentation. Also, feel free to fork gengo and the site to add more languages and locale support!

To fork gengo visit http://www.github.com/iwatakeshi/gengojs

To fork the site visit http://www.github.com/iwatakeshi/gengojs-site

If you would like to see more examples other than the ones on gengojs.com then check out the tests there's 127+ possible ways to gengo!

###Using gengo in scripts

I am not savy to say whether it is safe or not but it is possible to use gengo in your view. I am using Jade, but the following should work for other view engines.

//body ...
script.
    $(document).ready(function(){
        alert("!{__('Hello', 'ja')}"); // --> こんにちは
    });

###Sails.js setup

See sails/(ejs or jade)/config/http.js.

gengo must be set in a certain order for '__' to work. I've created a gist so that you can just copy and paste it into yourSailsApp/config/. Therefore there is no need to mess with sail's built in i18n or its locales. This will work on all platforms (linux, mac, windows)

gist: https://gist.github.com/iwatakeshi/e6f73cd0f19ce1816c70

###Recent Changes For previous notes on changes, see CHANGELOG.md

0.3.55

  • Added support for file prefix
  • Changed gengo's description in package.json
  • Added support for plain object options for debugging. This will allow you to add timestamps. see cout
  • Updated node modules for sails apps.

0.3.56

  • Added an instance of gengo to itself. Similar to i18n's method.
  • Revamped site. Completely better...waaay better. Visit now!
  • Final change to npm's description.
  • Removed legacies. Support for v0.2 ends.
  • Removed factory support.

0.3.57

  • Fixed typo in readme.

###Tests

#run all
npm test

#run functions
npm run functions

#run cookies
npm run cookies

#run json
npm run json

#run libs
npm run libs

#run routes
npm run routes

#run api
npm run api

##Acknowledgements

gengo was made possible by:

Keywords

FAQs

Package last updated on 30 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc