i18n_screwdriver 10.3.0 → 10.7.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_screwdriver
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.3.0
4
+ version: 10.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Miesel
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-02-18 00:00:00.000000000 Z
12
+ date: 2021-11-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -61,6 +61,7 @@ executables: []
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
+ - ".babelrc"
64
65
  - ".gitignore"
65
66
  - ".ruby-version"
66
67
  - Dockerfile
@@ -69,9 +70,17 @@ files:
69
70
  - LICENSE.txt
70
71
  - README.rdoc
71
72
  - Rakefile
72
- - app/assets/javascrips/i18n_screwdriver/config.coffee
73
+ - app/assets/javascrips/i18n_screwdriver/config.js
73
74
  - app/assets/javascrips/i18n_screwdriver/md5.js
74
- - app/assets/javascrips/i18n_screwdriver/screw.coffee
75
+ - app/assets/javascrips/i18n_screwdriver/screw.js
76
+ - dist/index.js
77
+ - dist/index.js.map
78
+ - dist/index.modern.js
79
+ - dist/index.modern.js.map
80
+ - dist/index.module.js
81
+ - dist/index.module.js.map
82
+ - dist/index.umd.js
83
+ - dist/index.umd.js.map
75
84
  - docker-compose.yml
76
85
  - i18n_screwdriver.gemspec
77
86
  - lib/i18n_screwdriver.rb
@@ -81,10 +90,13 @@ files:
81
90
  - lib/i18n_screwdriver/translation_helper.rb
82
91
  - lib/i18n_screwdriver/version.rb
83
92
  - lib/tasks/i18n.rake
93
+ - package.json
94
+ - package/src/index.js
84
95
  - spec/i18n_screwdriver_spec.rb
85
96
  - spec/locales/en.yml
86
97
  - spec/locales/it.yml
87
98
  - spec/spec_helper.rb
99
+ - yarn.lock
88
100
  homepage: https://github.com/agileapplications/i18n_screwdriver
89
101
  licenses:
90
102
  - MIT
@@ -104,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
116
  - !ruby/object:Gem::Version
105
117
  version: '0'
106
118
  requirements: []
107
- rubygems_version: 3.0.1
119
+ rubygems_version: 3.1.6
108
120
  signing_key:
109
121
  specification_version: 4
110
122
  summary: make translating with rails i18n fun again
@@ -1,3 +0,0 @@
1
- I18n.locale = $("html").attr("lang")
2
- I18n.onMissingTranslation ?= (md5, message) ->
3
- "translation missing: #{I18n.locale}.#{message}"
@@ -1,10 +0,0 @@
1
- #= require i18n_screwdriver/md5
2
-
3
- interpolate = (message, data) ->
4
- message.replace(/%{([^{}]*)}/g, (a, b) -> data[b])
5
-
6
- I18n.screw = (message, data) ->
7
- md5 = window.md5(message)
8
- translation = I18n.translations[I18n.locale][md5]
9
- translation ?= I18n.onMissingTranslation(md5, message)
10
- interpolate(translation, data)