-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[RFC] Add per-store configurable locales #2627
Conversation
@@ -0,0 +1,7 @@ | |||
class AddAvailableLocalesToStores < ActiveRecord::Migration[5.1] |
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.
Missing magic comment # frozen_string_literal: true.
@@ -0,0 +1,7 @@ | |||
class AddAvailableLocalesToStores < ActiveRecord::Migration[5.1] |
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.
Missing magic comment # frozen_string_literal: true.
@@ -0,0 +1,7 @@ | |||
class AddAvailableLocalesToStores < ActiveRecord::Migration[5.1] |
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.
Missing magic comment # frozen_string_literal: true.
This allows storing an array of available locales per-Store. An empty array, or nil, is interpreted as allowing all locales on a store. This is the default.
ac3139d
to
06772db
Compare
Built on top of
#2626and#2559This attempts to replicate the feature added to solidus_i18n in solidusio/solidus_i18n#95. I think this is a feature which we might as well support by default, and I think the implementation is simplified by implementing it in core rather than an extension.
This is just the last two commits here (but relies on features from my other open i18n-related PRs)
cc @DanielePalombo @kennyadsl