Ever wondered what changed between your local translation files and what’s on WebTranslateIt? Now you can find out instantly.
Introducing wti diff
Version 3.2.0 of the wti gem introduces a new command: wti diff. It lets you compare your local translation files with the versions hosted on WebTranslateIt, right from your terminal.
Why is this useful?
Before pushing or pulling files, you might want to know:
- What local changes haven’t been pushed yet?
- Did someone update the remote file since your last pull?
- Are there any conflicts to be aware of?
Now you can answer these questions before committing to a sync.
How to use it
Compare all your source language files:
wti diff
Or compare a specific file:
wti diff config/locales/en.yml
The output shows a standard diff between the remote version (on WebTranslateIt) and your local file.
Installation
Update to the latest version:
gem install web_translate_it
Or if you’re using Bundler, update your Gemfile and run bundle update web_translate_it.
Thanks to @vpolozov for this contribution!