alchemy_i18n 2.0.0 → 2.1.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 +4 -4
- data/lib/alchemy_i18n/version.rb +1 -1
- data/lib/generators/alchemy_i18n/install/install_generator.rb +8 -5
- data/locales/alchemy.de.yml +14 -0
- data/locales/alchemy.es.yml +14 -0
- data/locales/alchemy.fr.yml +14 -0
- data/locales/alchemy.it.yml +12 -0
- data/locales/alchemy.nl.yml +12 -0
- data/locales/alchemy.pl.yml +12 -0
- data/locales/alchemy.ru.yml +12 -0
- data/locales/alchemy.zh-CN.yml +11 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2895fcc017e9ab9418ae334a4177785bd04a9d6ce16857ea13ba5ee599b24c6
|
4
|
+
data.tar.gz: 877b9c050b8fc05a981c962db5c1fac1a8da7ac8052e510bdffdda3a5296b5e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fae7439ae005a81b68baad5d28e0a70407cfd531258c38a3d8ac49d6c560567576e19992262bbb8294cde70cb4f12fbb1a43f0fd6002cd8e709d3346c3ef7595
|
7
|
+
data.tar.gz: 4e9ffd4c4b12f24cf8b06d3c0ac47629f40d356ee2cddfa79d1abd66d23e228bd51f3058cf764a9749bb154b3191d64e6fcbd8acc9ac95a1dfe114665ad58b8f
|
data/lib/alchemy_i18n/version.rb
CHANGED
@@ -18,12 +18,15 @@ module AlchemyI18n
|
|
18
18
|
default: [],
|
19
19
|
desc: "Locales to generate files for. #{description}"
|
20
20
|
|
21
|
-
source_root AlchemyI18n::Engine.root
|
21
|
+
source_root AlchemyI18n::Engine.root
|
22
22
|
|
23
23
|
def copy_locales
|
24
24
|
locales.each do |locale|
|
25
|
-
|
26
|
-
copy_file
|
25
|
+
yml_filename = "alchemy.#{locale}.yml"
|
26
|
+
copy_file File.join('locales', yml_filename), Rails.root.join('config', 'locales', yml_filename)
|
27
|
+
js_filename = "#{locale}.js"
|
28
|
+
copy_file File.join('app', 'assets', 'javascripts', 'alchemy_i18n', js_filename), Rails.root.join('vendor', 'assets', 'javascripts', 'alchemy_i18n', js_filename)
|
29
|
+
copy_file File.join('vendor', 'assets', 'javascripts', 'flatpickr', js_filename), Rails.root.join('vendor', 'assets', 'javascripts', 'flatpickr', js_filename)
|
27
30
|
end
|
28
31
|
end
|
29
32
|
|
@@ -39,7 +42,7 @@ module AlchemyI18n
|
|
39
42
|
|
40
43
|
def copy_tinymce_locales
|
41
44
|
locales.each do |locale|
|
42
|
-
copy_file "tinymce
|
45
|
+
copy_file File.join("locales", "tinymce", "#{locale}.js"),
|
43
46
|
Rails.root.join('vendor', 'assets', 'javascripts', 'tinymce', 'langs', "#{locale}.js")
|
44
47
|
end
|
45
48
|
end
|
@@ -47,7 +50,7 @@ module AlchemyI18n
|
|
47
50
|
def append_manifest
|
48
51
|
locales.each do |locale|
|
49
52
|
append_file 'app/assets/config/manifest.js', <<~MANIFEST
|
50
|
-
//= link
|
53
|
+
//= link tinymce/langs/#{locale}.js
|
51
54
|
MANIFEST
|
52
55
|
end
|
53
56
|
end
|
data/locales/alchemy.de.yml
CHANGED
@@ -6,6 +6,20 @@ de:
|
|
6
6
|
# All translations used in Alchemy CMS are inside this alchemy namespace.
|
7
7
|
alchemy:
|
8
8
|
|
9
|
+
# == Translations for menu names
|
10
|
+
# Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
|
11
|
+
# We're providing main and footer menu here as a convenience.
|
12
|
+
# Example:
|
13
|
+
#
|
14
|
+
# de:
|
15
|
+
# alchemy:
|
16
|
+
# menu_names:
|
17
|
+
# sidebar_menu: Seitenleistenmenü
|
18
|
+
#
|
19
|
+
menu_names:
|
20
|
+
main_menu: Hauptmenü
|
21
|
+
footer_menut: Footermenü
|
22
|
+
|
9
23
|
# == Translations for page_layout names
|
10
24
|
# Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
|
11
25
|
#
|
data/locales/alchemy.es.yml
CHANGED
@@ -6,6 +6,20 @@ es:
|
|
6
6
|
# All translations used in Alchemy CMS are inside this alchemy namespace.
|
7
7
|
alchemy:
|
8
8
|
|
9
|
+
# == Translations for menu names
|
10
|
+
# Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
|
11
|
+
# We're providing main and footer menu here as a convenience.
|
12
|
+
# Example:
|
13
|
+
#
|
14
|
+
# de:
|
15
|
+
# alchemy:
|
16
|
+
# menu_names:
|
17
|
+
# sidebar_menu: Menú de barra lateral
|
18
|
+
#
|
19
|
+
menu_names:
|
20
|
+
main_menu: Menú principal
|
21
|
+
footer_menut: Menú de pie de página
|
22
|
+
|
9
23
|
# == Translations for page_layout names
|
10
24
|
# Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
|
11
25
|
#
|
data/locales/alchemy.fr.yml
CHANGED
@@ -6,6 +6,20 @@ fr:
|
|
6
6
|
# All translations used in Alchemy CMS are inside this alchemy namespace.
|
7
7
|
alchemy:
|
8
8
|
|
9
|
+
# == Translations for menu names
|
10
|
+
# Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
|
11
|
+
# We're providing main and footer menu here as a convenience.
|
12
|
+
# Example:
|
13
|
+
#
|
14
|
+
# de:
|
15
|
+
# alchemy:
|
16
|
+
# menu_names:
|
17
|
+
# sidebar_menu: Menu latéral
|
18
|
+
#
|
19
|
+
menu_names:
|
20
|
+
main_menu: Menu principal
|
21
|
+
footer_menut: Menu de bas de page
|
22
|
+
|
9
23
|
# == Translations for page_layout names
|
10
24
|
# Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
|
11
25
|
#
|
data/locales/alchemy.it.yml
CHANGED
@@ -6,6 +6,18 @@ it:
|
|
6
6
|
# All translations used in Alchemy CMS are inside this alchemy namespace.
|
7
7
|
alchemy:
|
8
8
|
|
9
|
+
# == Translations for menu names
|
10
|
+
# Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
|
11
|
+
# We're providing main and footer menu here as a convenience.
|
12
|
+
# Example:
|
13
|
+
#
|
14
|
+
# de:
|
15
|
+
# alchemy:
|
16
|
+
# menu_names:
|
17
|
+
# sidebar_menu: Side bar menu (?)
|
18
|
+
#
|
19
|
+
menu_names:
|
20
|
+
|
9
21
|
# == Translations for page_layout names
|
10
22
|
# Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
|
11
23
|
#
|
data/locales/alchemy.nl.yml
CHANGED
@@ -6,6 +6,18 @@ nl:
|
|
6
6
|
# All translations used in Alchemy CMS are inside this alchemy namespace.
|
7
7
|
alchemy:
|
8
8
|
|
9
|
+
# == Translations for menu names
|
10
|
+
# Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
|
11
|
+
# We're providing main and footer menu here as a convenience.
|
12
|
+
# Example:
|
13
|
+
#
|
14
|
+
# de:
|
15
|
+
# alchemy:
|
16
|
+
# menu_names:
|
17
|
+
# sidebar_menu: Side bar menu (?)
|
18
|
+
#
|
19
|
+
menu_names:
|
20
|
+
|
9
21
|
# == Translations for page_layout names
|
10
22
|
# Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
|
11
23
|
#
|
data/locales/alchemy.pl.yml
CHANGED
@@ -6,6 +6,18 @@ pl:
|
|
6
6
|
# All translations used in Alchemy CMS are inside this alchemy namespace.
|
7
7
|
alchemy:
|
8
8
|
|
9
|
+
# == Translations for menu names
|
10
|
+
# Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
|
11
|
+
# We're providing main and footer menu here as a convenience.
|
12
|
+
# Example:
|
13
|
+
#
|
14
|
+
# de:
|
15
|
+
# alchemy:
|
16
|
+
# menu_names:
|
17
|
+
# sidebar_menu: Side bar menu (?)
|
18
|
+
#
|
19
|
+
menu_names:
|
20
|
+
|
9
21
|
# == Translations for page_layout names
|
10
22
|
# Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
|
11
23
|
#
|
data/locales/alchemy.ru.yml
CHANGED
@@ -6,6 +6,18 @@ ru:
|
|
6
6
|
# All translations used in Alchemy CMS are inside this alchemy namespace.
|
7
7
|
alchemy:
|
8
8
|
|
9
|
+
# == Translations for menu names
|
10
|
+
# Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
|
11
|
+
# We're providing main and footer menu here as a convenience.
|
12
|
+
# Example:
|
13
|
+
#
|
14
|
+
# de:
|
15
|
+
# alchemy:
|
16
|
+
# menu_names:
|
17
|
+
# sidebar_menu: Seitenleistenmenü
|
18
|
+
#
|
19
|
+
menu_names:
|
20
|
+
|
9
21
|
# == Translations for page_layout names
|
10
22
|
# Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
|
11
23
|
#
|
data/locales/alchemy.zh-CN.yml
CHANGED
@@ -5,6 +5,17 @@ zh-CN:
|
|
5
5
|
# = Alchemy Translations
|
6
6
|
# All translations used in Alchemy CMS are inside this alchemy namespace.
|
7
7
|
alchemy:
|
8
|
+
# == Translations for menu names
|
9
|
+
# Just use the menu name like defined inside the config/alchemy/menus.yml file and translate it.
|
10
|
+
# We're providing main and footer menu here as a convenience.
|
11
|
+
# Example:
|
12
|
+
#
|
13
|
+
# de:
|
14
|
+
# alchemy:
|
15
|
+
# menu_names:
|
16
|
+
# sidebar_menu: Side bar menu (?)
|
17
|
+
#
|
18
|
+
menu_names:
|
8
19
|
|
9
20
|
# == Translations for page_layout names
|
10
21
|
# Just use the page_layouts name like defined inside the config/alchemy/page_layouts.yml file and translate it.
|
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.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas von Deyen
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-20 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: '
|
22
|
+
version: '6.0'
|
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: '
|
32
|
+
version: '6.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rails-i18n
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,7 +92,7 @@ homepage: https://alchemy-cms.com
|
|
92
92
|
licenses:
|
93
93
|
- MIT
|
94
94
|
metadata: {}
|
95
|
-
post_install_message:
|
95
|
+
post_install_message:
|
96
96
|
rdoc_options: []
|
97
97
|
require_paths:
|
98
98
|
- lib
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
110
|
rubygems_version: 3.0.3
|
111
|
-
signing_key:
|
111
|
+
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: AlchemyCMS translation files
|
114
114
|
test_files: []
|