Click here to load reader
Upload
matteo-collina
View
4.350
Download
0
Embed Size (px)
Citation preview
CI-18N
https://github.com/mcollina/ci-
18n
@matteocollina
JavaScript
is the Future of the web
We don't live all in the US
Japan
France
Germa
ny
Italy?
We need
I18n for
JavaScript
ci-18n
Requires rails 3.1
In your Gemfile:
gem "ci-18n"
ci-18n
In your application.js:
I18n.autoloadAndSetup({path: '/locales', default: 'en'})
ci-18n
It support both '.t' and '.l' of Ruby I18n API
$i18n.t("hello.world", { name: "John" })
=>
"Hello World John"
ci-18n
Developers & Testers Needed
Thanks
Matteo Collina
http://matteocollina.com
ci-18n
https://github.com/mcollina/ci-18n