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

API for marking a key as reserved #579

Merged
merged 1 commit into from
Jan 26, 2022
Merged

Conversation

ghiculescu
Copy link
Contributor

@ghiculescu ghiculescu commented Sep 10, 2021

Fixes #577

If you have a key you want to use as an option in I18n.t calls (not as an interpolation key), you can do this in an initializer:

I18n.reserve_key(:my_special_option)

@ghiculescu ghiculescu changed the title Nicer API for reserving a key API for marking a key as reserved Sep 10, 2021
@radar radar merged commit bb2ad9d into ruby-i18n:master Jan 26, 2022
@ghiculescu ghiculescu deleted the reserved_keys branch January 26, 2022 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Can't edit I18n::RESERVED_KEYS
3 participants