-
Notifications
You must be signed in to change notification settings - Fork 124
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
use helpers to i18nize configured permission levels/options #4298
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this isn't backwards compatible if anyone has been customizing these by doing something like Hyrax.config.permission_levels = {}
in an initializer.
I don't know what the use case would be for customizing the values and I think replacing customizable keys with i18n locale strings is the best long-term approach. So deprecate in 2.x and make the switch in 3.0?
why not? the configs are still used by the helpers. to clarify, i think in the current implementation,
|
1dcb6ff
to
3e7cbf7
Compare
these configured options (why do they need to be configurable? how would one configure them successfully?) need to be i18nized, but the current fix only caches the i18n strings at app startup (or maybe when the configurations are first hit?). to translate on-the-fly we need to hit the i18n key while the user is in the desired locale. this is a stop-gap fix. probably we want to make the configuration options just straight arrays, or remove them completely. discussion on longer term approachs is scheduled in https://wiki.lyrasis.org/display/samvera/Samvera+Tech+Call+2020-06-05.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
these configured options (why do they need to be configurable? how would one
configure them successfully?) need to be i18nized, but the current fix only
caches the i18n strings at app startup (or maybe when the configurations are
first hit?).
to translate on-the-fly we need to hit the i18n key while the user is in the
desired locale.
this is a stop-gap fix. probably we want to make the configuration options just
straight arrays, or remove them completely. discussion on longer term approachs
is scheduled in https://wiki.lyrasis.org/display/samvera/Samvera+Tech+Call+2020-06-05.
related to #4297.
@samvera/hyrax-code-reviewers