= Javascript Localize == INSTALL: $ ./script/plugin install git://github.com/jinzhu/locale_javascript.git == How To Use: 1. drop all localized content into RAILS_ROOT/config/js_locales/ e.g: RAILS_ROOT/config/js_locales/en.yml hello world : 'Hello World!' hello world for you : '{{you}},Hello World!' RAILS_ROOT/config/js_locales/zh.yml hello world : '世界你好!' hello world for you : '{{you}},世界你好!' 2. include into views <%= include_localized_javascript %> 3. Use it as javascript _('hello world') => en: 'Hello World!' zh: '世界你好!' _('hello world for you',{you : 'ZhangJinzhu'}) => en: 'ZhangJinzhu,Hello World!' zh: 'ZhangJinzhu,世界你好!' 4. Rake Task rake js_locale:sync => Keep localized content in sync with default locale rake js_locale:build => Generate javascript localization files Author : ZhangJinzhu GitHub : http://github.com/jinzhu Email : wosmvp (no-spam) gmail (no-spam) com
Project
javascript_localize
javascript localize solution
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
Development
Project Readme