-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i18n-tasks unused
is displaying a lot of *used* items
#187
Comments
@lucascaton Could you please try master? Thanks |
@glebm got the same result. # Gemfile
gem 'i18n-tasks', require: false, github: 'glebm/i18n-tasks' # Gemfile.lock
GIT
remote: git://github.com/glebm/i18n-tasks.git
revision: 3d7e71f21b37dca9eda95fd7fcc16e4ace152ce6 |
base_locale: en
data:
read:
- config/locales/**/%{locale}.yml
- config/locales/**/*.%{locale}.yml
# Ignoring the following keys because they are defined by 'rails-i18n' gem
ignore_missing:
- 'date.formats.*'
- 'number.currency.format.*'
search:
exclude:
- app/assets/images
- app/assets/fonts |
I can't reproduce this at all. What version of ruby and activesupport are used? Does |
i18n-tasks unused
is displaying everythingi18n-tasks unused
is displaying a lot of *used* items
Hi @glebm, I just realised that it's not everything, I'll pick some examples and add here. Also,
|
Some examples: 1)
It's used here: # Controller
@date = l @month, format: :month_and_year 2)
It's used here: # Haml view
= title # Helper
def title
t("#{controller_path.gsub(%r{/}, '.')}.#{action_name}.title")
end |
|
# i18n-tasks-use t('time.formats.month_and_year')
@date = l @month, format: :month_and_year |
@glebm awesome, thanks again! |
* upstream/master: (28 commits) Fix translation of plural HTML keys glebm#193 Default config: exclude app/assets/videos glebm#194 fix template config Bump to 0.9.5 Pattern mapper documentation glebm#191 Pattern mapper implementation glebm#191 Add missing keys with `nil` value glebm#170 Avoid changing the locale after running i18n-tasks changelog: 187 still not fixed Bump to 0.9.4 Reference resolution reporting Document used_keys include_raw_references param Remove redundant filtering from unused_keys Improve reporting for unused keys Possible fix to glebm#187 Improve reporting for missing ref keys minor refactors Bump to 0.9.3 Readme: reference keys Copy reference keys as is in add/translate-missing ...
$ i18n-tasks unused
The text was updated successfully, but these errors were encountered: