I’m looking at migrating to
react_on_rails and I’m trying to better understand what it provides as it relates to I18n. If I understand the code for
rake react_on_rails:locale properly, it looks like it puts all of the translations into a single file. Is that accurate?
Is there any way to split translations up through the rake task, both by locale and by section of the website? As an example, in my translations, I may want all of the strings that relates to the LoginComponent, which would be children of the “login” key in the translations, to be in its own file (one for each language). I’d load the translation for those translations only when I use the LoginComponent and nowhere else. Is that possible?
If not, is there a recommended way to split up the translation file so they don’t all have to be loaded at once?