alchemy_i18n 2.3.1 → 3.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe5c81b5da5cc237ba084ee1cc391fe9cfc59da0d8231af41ba3a6f316e8f586
4
- data.tar.gz: d66e5d0209c70659b9dbc5311780694265dd579702410d0deb2503a4a55d8b92
3
+ metadata.gz: f1d136fcb080a14be76a7fe577646561bea6d42ea02dab0c9b1aa2dd101d85e1
4
+ data.tar.gz: 908873c94d85302bb3b1f2efc8497143be203874c06beaf1ef588f92ffc06d05
5
5
  SHA512:
6
- metadata.gz: f73d6998202ba627d26b782b70509bb5ebeac651e6a98d996cc9af4ebf6102a9301931979d4773f832a6a843f93c06daeda71646b34b2a5aedbcc767872ef1a9
7
- data.tar.gz: cd18be9f8af560c9584abe1136cc6b2621700b5024d096e7aa8d245b6b212c21fbfae2c595d912c06882391237cf8204ca34322b404d5b11b96faf9d15db373d
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)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module AlchemyI18n
2
- VERSION = "2.3.1"
2
+ VERSION = "3.0.0"
3
3
  end
data/lib/alchemy_i18n.rb CHANGED
@@ -1 +1,2 @@
1
- require 'alchemy_i18n/engine'
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: 2.3.1
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-20 00:00:00.000000000 Z
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.0'
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.0'
32
+ version: '6.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rails-i18n
35
35
  requirement: !ruby/object:Gem::Requirement