alchemy_i18n 2.3.1 → 3.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 +16 -0
- data/lib/alchemy_i18n/engine.rb +6 -0
- data/lib/alchemy_i18n/version.rb +1 -1
- data/lib/alchemy_i18n.rb +2 -1
- data/lib/generators/alchemy_i18n/install/install_generator.rb +0 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1d136fcb080a14be76a7fe577646561bea6d42ea02dab0c9b1aa2dd101d85e1
|
4
|
+
data.tar.gz: 908873c94d85302bb3b1f2efc8497143be203874c06beaf1ef588f92ffc06d05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e835b863f10c3d42db9ab5ae92cc9cfe151c5d1d76544438180a93bc9fd228d09c0b8f47f8d8110e03a9ea6160469f0ca913502f046d54a6a031ed2626db102b
|
7
|
+
data.tar.gz: 13575f931f873f2a80d045d95102976e0791ba0e60816f7807da03294f477a4b6d48498ef51614f8649a8e3cdcb2c8c4b89a4f0cfdbac6118188d7fe782d8ec1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v3.0.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v3.0.0) (2022-04-17)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v2.3.0...v3.0.0)
|
6
|
+
|
7
|
+
**Closed issues:**
|
8
|
+
|
9
|
+
- Load the translations from the gem instead of copy [\#33](https://github.com/AlchemyCMS/alchemy_i18n/issues/33)
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- Append locales to I18n load path [\#41](https://github.com/AlchemyCMS/alchemy_i18n/pull/41) ([tvdeyen](https://github.com/tvdeyen))
|
14
|
+
- Update alchemy.es.yml [\#39](https://github.com/AlchemyCMS/alchemy_i18n/pull/39) ([diegodev9](https://github.com/diegodev9))
|
15
|
+
- Update alchemy.es.yml [\#38](https://github.com/AlchemyCMS/alchemy_i18n/pull/38) ([diegodev9](https://github.com/diegodev9))
|
16
|
+
- Add german node translations [\#37](https://github.com/AlchemyCMS/alchemy_i18n/pull/37) ([tvdeyen](https://github.com/tvdeyen))
|
17
|
+
- Allow Alchemy 6 [\#36](https://github.com/AlchemyCMS/alchemy_i18n/pull/36) ([afdev82](https://github.com/afdev82))
|
18
|
+
|
3
19
|
## [v2.3.0](https://github.com/AlchemyCMS/alchemy_i18n/tree/v2.3.0) (2021-10-26)
|
4
20
|
|
5
21
|
[Full Changelog](https://github.com/AlchemyCMS/alchemy_i18n/compare/v2.2.0...v2.3.0)
|
data/lib/alchemy_i18n/engine.rb
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
module AlchemyI18n
|
2
2
|
class Engine < ::Rails::Engine
|
3
|
+
initializer "alchemy-i18n" do |app|
|
4
|
+
locales = Array(app.config.i18n.available_locales)
|
5
|
+
pattern = locales.empty? ? "*" : "{#{locales.join ","}}"
|
6
|
+
files = Dir[root.join("locales", "alchemy.#{pattern}.yml")]
|
7
|
+
I18n.load_path.concat(files)
|
8
|
+
end
|
3
9
|
end
|
4
10
|
end
|
data/lib/alchemy_i18n/version.rb
CHANGED
data/lib/alchemy_i18n.rb
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
require
|
1
|
+
require "rails-i18n"
|
2
|
+
require "alchemy_i18n/engine"
|
@@ -22,8 +22,6 @@ module AlchemyI18n
|
|
22
22
|
|
23
23
|
def copy_locales
|
24
24
|
locales.each do |locale|
|
25
|
-
yml_filename = "alchemy.#{locale}.yml"
|
26
|
-
copy_file File.join('locales', yml_filename), Rails.root.join('config', 'locales', yml_filename)
|
27
25
|
js_filename = "#{locale}.js"
|
28
26
|
copy_file File.join('app', 'assets', 'javascripts', 'alchemy_i18n', js_filename), Rails.root.join('vendor', 'assets', 'javascripts', 'alchemy_i18n', js_filename)
|
29
27
|
copy_file File.join('vendor', 'assets', 'javascripts', 'flatpickr', js_filename), Rails.root.join('vendor', 'assets', 'javascripts', 'flatpickr', js_filename)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alchemy_i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas von Deyen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: alchemy_cms
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 4.4.0.a
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '6.
|
22
|
+
version: '6.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 4.4.0.a
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '6.
|
32
|
+
version: '6.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rails-i18n
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|