i18n-tasks 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +1 -0
- data/README.md +9 -11
- data/lib/i18n/tasks.rb +0 -2
- data/lib/i18n/tasks/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: 2a78b228c86e2754c4974f8312f0b8ae895c7418
|
4
|
+
data.tar.gz: c5e9356a3f3758bd1dd4a82c401460982698f479
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43bd0d3d15ce89ab8addc91f44b2661e51163eb61ae4200ba7f7afbbbd64c91f1b0acd07164a71391d4ff1e84a0d9264a314a118c529611c97feb95f01bac4ad
|
7
|
+
data.tar.gz: 3a8f419113d5ce08bec4e9a92fa2e75aa7d8ecca0de4b4f4d017c315cb97aa89c547c1435b1bb5394f8491cd025902beced940e56f27329f1392adba328809f6
|
data/CHANGES.md
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
## v0.3.0
|
6
6
|
|
7
7
|
* i18n-tasks is a binary now (instead of rake tasks). All tasks / commands now accept various options, and there is no need for as many of them as before.
|
8
|
+
* Works faster on Rails as it doesn't load anything but the gem, but now requires `base_locale` and `locales` to be set in config.
|
8
9
|
|
9
10
|
## v0.2.21..v0.2.22
|
10
11
|
|
data/README.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
# i18n-tasks [![Build Status](https://travis-ci.org/glebm/i18n-tasks.png?branch=master)](https://travis-ci.org/glebm/i18n-tasks) [![Coverage Status](https://coveralls.io/repos/glebm/i18n-tasks/badge.png?branch=master)](https://coveralls.io/r/glebm/i18n-tasks?branch=master) [![Code Climate](https://codeclimate.com/github/glebm/i18n-tasks.png)](https://codeclimate.com/github/glebm/i18n-tasks) [![Flattr this](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=glebm&url=https%3A%2F%2Fgithub.com%2Fglebm%2Fi18n-tasks)
|
2
2
|
|
3
|
-
|
3
|
+
The default model of i18n key management in frameworks such as Rails is broken.
|
4
|
+
|
5
|
+
If you use a key that does not exist, this will only blow up at runtime. Keys left over from removed code accumulate
|
6
|
+
in the resource files, introducing unnecessary overhead on the translators.
|
7
|
+
Translation files can quickly turn to disarray.
|
8
|
+
|
9
|
+
i18n-tasks improves this by using static analysis.
|
4
10
|
|
5
11
|
<img width="534" height="288" src="https://raw.github.com/glebm/i18n-tasks/master/doc/img/i18n-tasks.png">
|
6
12
|
|
@@ -9,7 +15,7 @@ Tasks to manage translations in ruby applications using I18n.
|
|
9
15
|
1. Add to Gemfile:
|
10
16
|
|
11
17
|
```ruby
|
12
|
-
gem 'i18n-tasks', '~> 0.3.
|
18
|
+
gem 'i18n-tasks', '~> 0.3.2'
|
13
19
|
```
|
14
20
|
|
15
21
|
2. Create a config file at `config/i18n-tasks.yml`:
|
@@ -45,15 +51,7 @@ Available commands:
|
|
45
51
|
See `<command> --help` for more information on a specific command.
|
46
52
|
```
|
47
53
|
|
48
|
-
|
49
|
-
|
50
|
-
```bash
|
51
|
-
i18n-tasks missing
|
52
|
-
i18n-tasks unused
|
53
|
-
```
|
54
|
-
|
55
|
-
Add missing values, generated from the key (for base locale) or copied from the base locale (for other locales).
|
56
|
-
|
54
|
+
You can add missing values, generated from the key (for base locale) or copied from the base locale (for other locales).
|
57
55
|
To add missing values to the base locale only:
|
58
56
|
|
59
57
|
```bash
|
data/lib/i18n/tasks.rb
CHANGED
data/lib/i18n/tasks/version.rb
CHANGED