i18n-coffee 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +37 -0
- data/i18n-coffee.gemspec +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 21bb26d4844d86756477408e3a077e88916739b5
|
|
4
|
+
data.tar.gz: b4ad47d14ba5c5dcae41626388c8458fc28d0b22
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 701fa65ad549fb1b690e1eec64977e9aab0cb70da57e46552f531450d7e68c0205939a825cfc3ee7392220aa13d0708a78544614c221460122d7e55ce256b413
|
|
7
|
+
data.tar.gz: ddea996bd44ed2ef8e14a44feea18bd479c711fe349835c66b661ca8f0470e262d2131590e9f9e135c53c1e56a8464ec4bcd394f6aef79f8567f2183351a3b98
|
data/README.md
CHANGED
|
@@ -2,3 +2,40 @@ i18n-coffee
|
|
|
2
2
|
===========
|
|
3
3
|
|
|
4
4
|
Client Side Localisation for Rails
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Usages
|
|
8
|
+
------
|
|
9
|
+
|
|
10
|
+
In your Gemfile add
|
|
11
|
+
|
|
12
|
+
`gem 'i18n-coffee', '~> 0.1.0'`
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
Setup locale translations
|
|
16
|
+
-------------------------
|
|
17
|
+
|
|
18
|
+
By default, it looks for `javascripts` node in your {locale}.yml.
|
|
19
|
+
|
|
20
|
+
**For example**
|
|
21
|
+
|
|
22
|
+
<pre><code>
|
|
23
|
+
# locales/en.yml
|
|
24
|
+
en:
|
|
25
|
+
javascripts:
|
|
26
|
+
hello: "Hello"
|
|
27
|
+
</code></pre>
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
On the client-side
|
|
31
|
+
------------------
|
|
32
|
+
|
|
33
|
+
You can try in Firebug or Chrome developer tools with
|
|
34
|
+
|
|
35
|
+
`window.t('javascripts.hello'); // "Hello"`
|
|
36
|
+
|
|
37
|
+
based on `I18n.locale` in Rails it will load the corresponding translations from your locale files.
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
data/i18n-coffee.gemspec
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = "i18n-coffee"
|
|
3
|
-
s.version = "0.1.
|
|
3
|
+
s.version = "0.1.1"
|
|
4
4
|
s.authors = ["Chanmann Lim"]
|
|
5
5
|
s.email = "chanmannlim@gmail.com"
|
|
6
|
+
s.homepage = "https://rubygems.org/gems/i18n-coffee"
|
|
6
7
|
s.summary = "Rails client-side i18n translation"
|
|
8
|
+
s.description = s.summary
|
|
7
9
|
|
|
8
10
|
s.files = `git ls-files`.split("\n")
|
|
9
11
|
s.require_paths = ["lib"]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: i18n-coffee
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chanmann Lim
|
|
@@ -52,7 +52,7 @@ dependencies:
|
|
|
52
52
|
- - '>='
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
|
-
description:
|
|
55
|
+
description: Rails client-side i18n translation
|
|
56
56
|
email: chanmannlim@gmail.com
|
|
57
57
|
executables: []
|
|
58
58
|
extensions: []
|
|
@@ -67,7 +67,7 @@ files:
|
|
|
67
67
|
- config/routes.rb
|
|
68
68
|
- i18n-coffee.gemspec
|
|
69
69
|
- lib/i18n-coffee.rb
|
|
70
|
-
homepage:
|
|
70
|
+
homepage: https://rubygems.org/gems/i18n-coffee
|
|
71
71
|
licenses: []
|
|
72
72
|
metadata: {}
|
|
73
73
|
post_install_message:
|