i18n-processes 0.1.1 → 0.1.2
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/Gemfile.lock +4 -4
- data/README.md +6 -3
- data/lib/i18n/processes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b8e041c7560a1cba5ab1d081f70e8d02f6e59219
|
|
4
|
+
data.tar.gz: e42edce588f26017cd8d82cf1d0687e1304708d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e101298c0de870861bf915907ce5b124888de1b6d8a5b642b0e90c0b4dc38d7f1c3a26c28a2421aca3113111a436e9f614f767f5346d02d5394e31380bc89a35
|
|
7
|
+
data.tar.gz: c368d78eeef4ccb6e36bb988460c12abf7f0f9e21aa04270e195e28d39b0823ebb6cd08031c7fc64be14e95502ca049aa63f90543a1efac169951b8a9876a5ed
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
i18n-processes (0.1.
|
|
4
|
+
i18n-processes (0.1.2)
|
|
5
5
|
activesupport (>= 4.0.2)
|
|
6
6
|
ast (>= 2.1.0)
|
|
7
7
|
easy_translate (>= 0.5.1)
|
|
@@ -15,9 +15,9 @@ PATH
|
|
|
15
15
|
GEM
|
|
16
16
|
remote: https://rubygems.org/
|
|
17
17
|
specs:
|
|
18
|
-
activesupport (5.1.
|
|
18
|
+
activesupport (5.1.6)
|
|
19
19
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
20
|
-
i18n (
|
|
20
|
+
i18n (>= 0.7, < 2)
|
|
21
21
|
minitest (~> 5.1)
|
|
22
22
|
tzinfo (~> 1.1)
|
|
23
23
|
ast (2.4.0)
|
|
@@ -34,7 +34,7 @@ GEM
|
|
|
34
34
|
erubi (1.7.1)
|
|
35
35
|
highline (1.7.10)
|
|
36
36
|
htmlentities (4.3.4)
|
|
37
|
-
i18n (0.
|
|
37
|
+
i18n (1.0.0)
|
|
38
38
|
concurrent-ruby (~> 1.0)
|
|
39
39
|
json (2.1.0)
|
|
40
40
|
mini_portile2 (2.3.0)
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Add this line to your application's Gemfile:
|
|
8
8
|
|
|
9
9
|
```ruby
|
|
10
|
-
gem 'i18n-processes'
|
|
10
|
+
gem 'i18n-processes', '~> 0.1.2'
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
And then execute:
|
|
@@ -20,11 +20,14 @@ Or install it yourself as:
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
-
|
|
23
|
+
- 复制默认的config文件i18n-processes.yml,添加到你自己的config目录下,设置三个路径:
|
|
24
|
+
```
|
|
25
|
+
$ cp $(i18n-processes gem-path)/config/i18n-processes.yml config/
|
|
26
|
+
```
|
|
24
27
|
- source: base_locale zh-CN原始文件存放路径
|
|
25
28
|
- translation: 翻译文件存放路径
|
|
26
29
|
- translated:翻译后的文件存放路径
|
|
27
|
-
|
|
30
|
+
|
|
28
31
|
- 将需要翻译的中文文件夹放入设置好的目录下,比如source/
|
|
29
32
|
- 运行:`i18n-processes preprocessing`, 会提取出所有的keys
|
|
30
33
|
- 运行:`i18n-processes missing`
|