-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add i18n/CLDR support from the .dojorc in codesandbox #558
Comments
The current work can be seen on this branch. After some digging and playing around, I added support for The injected module is definitely getting run as part of the sandbox, but the main problem I am running into right now is that the |
Here's a little more thorough of an update. Since I last worked on it, codesandbox added this cerebral debugger to the project, which was supposed to give me insight on the complete state of the app, but I spent too much time and was never able to get it to work. I thought it would’ve helped things go faster though because I would know what codesandbox knows both in the editor and in the sandbox manager. Then, I spent some time learning how Dojo itself handles i18n and loading of the cldr portion through the reading of the This seemed to work in so far as it seemed like it was injecting my code and the code had all the pieces to load the code from the CLDR project But then I learned that the CLDR project actually relies on a install script to actually fetch and download the json files it need, which of course wasn’t happening in codesandbox. I spent some time digging through issues to see if there was a solution and that’s where I left it on Friday. I looked at Matt's example to see if there was something I could pull out, and I then tried using some different modules that had different pieces that I’d need to get the one specific example running, and it seemed like it still wasn’t finding the json files properly. The next thing I need to do is to verify via unpkg that those modules actually have the files in the paths I expect, and if that doesn’t work, I need to see if there’s another way. |
In Dojo 7 Here is an example codesandbox that has configured i18n, this is the configuration that would need to be executed automatically using the projects |
Enhancement
Currently any app or example that uses
i18n
andcldr
from the.dojorc
will not work on codesandbox. We have 2 examples of this in@dojo/examples
:https://github.com/dojo/examples/tree/master/world-clock
https://github.com/dojo/examples/tree/master/todo-mvc-kitchensink
It would be nice if we could offer support for this in codesandbox.
The text was updated successfully, but these errors were encountered: