Skip to content
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

Added option to keep the keys order when using remove-unused #147

Closed
wants to merge 2 commits into from

Conversation

bulinutza
Copy link

No description provided.

@glebm
Copy link
Owner

glebm commented May 6, 2015

Looks good to me, just needs a test for the new option

@glebm glebm force-pushed the master branch 5 times, most recently from cd31ab7 to 8a7270b Compare October 28, 2015 19:55

def remove_unused(opt = {})
unused_keys = i18n.unused_keys(opt)
if unused_keys.present?
terminal_report.unused_keys(unused_keys)
confirm_remove_unused!(unused_keys, opt)
if opt[:'keep-order']
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The opt hash key would be :keep_order

# Conflicts:
#	config/locales/ru.yml
#	lib/i18n/tasks/command/commands/usages.rb
#	lib/i18n/tasks/data/file_system_base.rb
@glebm glebm force-pushed the master branch 2 times, most recently from cdd1fc9 to 0002e80 Compare August 1, 2018 19:11
@glebm glebm closed this Sep 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants