qoobaa-javascript_i18n 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -58,6 +58,11 @@ ActiveSupport I18n.t:
58
58
  I18n.t("bar", { count: 2 })
59
59
  // "foos"
60
60
 
61
+ Current locale string can be retrieved using I18n.locale property:
62
+
63
+ I18n.locale
64
+ // "en"
65
+
61
66
  == Copyright
62
67
 
63
68
  Copyright (c) 2009 Jakub Kuźma. See LICENSE for details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{javascript_i18n}
5
- s.version = "0.2.1"
5
+ s.version = "0.2.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jakub Kuźma"]
9
- s.date = %q{2009-05-21}
9
+ s.date = %q{2009-07-27}
10
10
  s.email = %q{qoobaa@gmail.com}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
34
34
  s.homepage = %q{http://github.com/qoobaa/javascript_i18n}
35
35
  s.rdoc_options = ["--charset=UTF-8"]
36
36
  s.require_paths = ["lib"]
37
- s.rubygems_version = %q{1.3.3}
37
+ s.rubygems_version = %q{1.3.5}
38
38
  s.summary = %q{Dead simple JavaScript i18n}
39
39
  s.test_files = [
40
40
  "test/javascript_i18n_test.rb",
@@ -17,6 +17,7 @@ module JavascriptI18n
17
17
  file.puts(lib)
18
18
  file.puts("\n")
19
19
  end
20
+ file.puts("I18n.locale = I18n.locale || \"#{key}\";")
20
21
  file.puts("I18n.translations = I18n.translations || #{value.to_json};")
21
22
  end
22
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qoobaa-javascript_i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jakub Ku\xC5\xBAma"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-21 00:00:00 -07:00
12
+ date: 2009-07-27 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -42,6 +42,7 @@ files:
42
42
  - test/test_helper.rb
43
43
  has_rdoc: false
44
44
  homepage: http://github.com/qoobaa/javascript_i18n
45
+ licenses:
45
46
  post_install_message:
46
47
  rdoc_options:
47
48
  - --charset=UTF-8
@@ -62,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
63
  requirements: []
63
64
 
64
65
  rubyforge_project:
65
- rubygems_version: 1.2.0
66
+ rubygems_version: 1.3.5
66
67
  signing_key:
67
68
  specification_version: 3
68
69
  summary: Dead simple JavaScript i18n