[Rails] Let's make it possible to set the available i18n languages per community #765
Replies: 2 comments
-
Hello! I'm looking for something on this project to dive into and was wondering if this issue was still relevant and something I could potentially start working on. If not, is there another issue that is more pressing? |
Beta Was this translation helpful? Give feedback.
-
Hi @arlohal! Thank you for your interest :) We are actually about to undergo a major refactor that is going to touch most issues, including this one. So it's not a great time to work on this ticket. There may be others that I can share with you, but it will take me a few days to do so. Post-refactor, this issue will definitely be resurfaced too! |
Beta Was this translation helpful? Give feedback.
-
Currently, when you open Terrastories (i.e. by going to http://our.terrastories.io/), there are a defined number of i18n languages that show up. The way this currently works is that in
application.rb
there is some code that automatically loads in whatever languages are defined inconfig/locales/
. This has worked for now, but will get unsustainable as more languages get added to Terrastories.Let's (1) specify a default set of languages that show up for a non-logged in user, and (2) allow community administrators to set which languages they want to show for their community when logged in, and the default selected language for their community.
See acceptance criteria below.
Acceptance criteria:
config/locales
into the language picker, let's only provide these:en
,es
,ja
,mat
,pt
. (We can manually add more default languages in the future if those translations are provided).en
(which is currently the case already).config/locales/
. Using this field, community administrator is able to select the subset of languages they want to show for the community welcome screen.en
,es
,ja
,mat
,pt
, until overridden by the community administrator.en
.Assets
Screenshot of the welcome screen box with the language picker at the bottom. Currently
nl
is included as a default; it should not be.Beta Was this translation helpful? Give feedback.
All reactions