lokalise_rails 5.2.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/LICENSE +1 -1
- data/README.md +25 -1
- data/lib/lokalise_rails/version.rb +2 -2
- data/lokalise_rails.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14b031485e357b3c1b4d4aa5640f214ddcdb382fe53266de02d70b118867515d
|
4
|
+
data.tar.gz: e0b8070461e74fcdf9dd465335b60486d98dd80456b46934029ef5da23e60525
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aab358a2d9cb224c199a0b052d5749ffad9dc4c3a1e739ab6a1532a7303dd45d88ba1e9b242e3a1ce8b8c0ecef98288abf7049124d2ae56170ebf417573eb20
|
7
|
+
data.tar.gz: fa9ed8e36017819eeb00f712910d582fb13d2ca63a07fb62b85c561fd3edb8e93fe1275a4fcca5be80093a97c4f5dc2260305daf94afa96146a22dd001831a27
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 6.0.0 (27-Jul-2023)
|
4
|
+
|
5
|
+
* Use lokalise-manager v4 and ruby-lokalise-api v8. The latter is a major rewrite of the original SDK and has some breaking changes (however 95% of the methods have similar signatures). Therefore please make sure that your tests pass.
|
6
|
+
* Do not test with Ruby 2.7 (EOL)
|
7
|
+
|
3
8
|
## 5.2.0 (26-Jan-2023)
|
4
9
|
|
5
10
|
* The gem can now be added to the `development` group instead of `production` to reduce the bundle size
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -101,6 +101,30 @@ importer.import!
|
|
101
101
|
exporter.export!
|
102
102
|
```
|
103
103
|
|
104
|
+
### Example: Multiple translation paths
|
105
|
+
|
106
|
+
Creating custom import/export script can come in really handy if you have a non-standard setup, for instance, your translation files are stored in multiple directories (not only in the default `./config/locales`. To overcome this problem, create a custom Rake task and provide as many importers/exporters as needed:
|
107
|
+
|
108
|
+
```ruby
|
109
|
+
require 'rake'
|
110
|
+
require 'lokalise_rails'
|
111
|
+
require "#{LokaliseRails::Utils.root}/config/lokalise_rails"
|
112
|
+
|
113
|
+
namespace :lokalise_custom do
|
114
|
+
task :export do
|
115
|
+
# importing from the default directory (./config/locales/)
|
116
|
+
exporter = LokaliseManager.exporter({}, LokaliseRails::GlobalConfig)
|
117
|
+
exporter.export!
|
118
|
+
|
119
|
+
# importing from the custom directory
|
120
|
+
exporter = LokaliseManager.exporter({locales_path: "#{Rails.root}/config/custom_locales"}, LokaliseRails::GlobalConfig)
|
121
|
+
exporter.export!
|
122
|
+
rescue StandardError => e
|
123
|
+
abort e.inspect
|
124
|
+
end
|
125
|
+
end
|
126
|
+
```
|
127
|
+
|
104
128
|
## Configuration
|
105
129
|
|
106
130
|
Options are specified in the `config/lokalise_rails.rb` file.
|
@@ -169,4 +193,4 @@ end
|
|
169
193
|
|
170
194
|
## License
|
171
195
|
|
172
|
-
Copyright (c) [
|
196
|
+
Copyright (c) [Ilya Krukowski](http://bodrovis.tech). License type is [MIT](https://github.com/bodrovis/lokalise_rails/blob/master/LICENSE).
|
data/lokalise_rails.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.extra_rdoc_files = ['README.md']
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.add_dependency 'lokalise_manager', '~>
|
25
|
+
spec.add_dependency 'lokalise_manager', '~> 4.0'
|
26
26
|
spec.add_dependency 'zeitwerk', '~> 2.4'
|
27
27
|
|
28
28
|
spec.metadata = {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lokalise_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilya Krukowski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lokalise_manager
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: zeitwerk
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
rubygems_version: 3.4.
|
87
|
+
rubygems_version: 3.4.17
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Lokalise integration for Ruby on Rails
|