Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Get a list of available locales #39
Is there a way to get a list of the locales in which a certain attribute has a value? I'm using the postgres jsonb backend, and I know I could just do
There isn't a way to do it currently, but you're right that it would be good to have something that any backend could use in the same way.
There are a few things like this that I've left out so far to focus on making sure the core of the gem works without issues, which it seems to do now, so I'm open to taking these kinds of feature requests. I'll keep note of this and in the next phase of work (probably in the next few weeks) think about how to implement them in a backend-independent way.
referenced this issue
Jun 23, 2017
You can always get the jsonb hash with
Of course this is jsonb-specific, other backends would have to be handled differently, and that's what I'm thinking about. Probably something like