Matthew Taylor
214430b0c4
Migrate to using a loader method
...
This moves all locale/translation building to a dependency, `scratch-www-intl-loader`, as well as tests associated with it. Also gets rid of the `make translations` step.
2016-01-07 17:01:57 -05:00
Matthew Taylor
8ae98d703f
Make localizations view-based
...
1. Load locale strings into `window._messages` in a separate file added to `template.html`, which contains view-specific and general strings
2. Update build-locales to compile separate files
2016-01-06 14:09:32 -05:00
Matthew Taylor
f52ac1f17f
Move intl loading into separate, overridden file
...
ht @rschamp, thanks!
2015-12-16 12:00:42 -05:00
Matthew Taylor
8c374e096d
Move custom loader to main.jsx
...
So that it's only done once.
2015-12-16 10:43:37 -05:00
Matthew Taylor
6ff652e788
Revert "Move custom-locales.js
to static/js/lib
"
...
This reverts commit 4f541b8831
.
2015-12-16 10:09:15 -05:00
Matthew Taylor
4f541b8831
Move custom-locales.js
to static/js/lib
...
So it can be loaded ahead of time and cached. Also remove the json since it's being loaded outside of react now, and put it into the js file directly.
2015-12-16 08:32:25 -05:00
Matthew Taylor
b495beaeba
Also add Latin, Aragonés
2015-12-15 18:06:03 -05:00
Matthew Taylor
08a91f8521
Add custom languages explicitly
2015-12-15 17:55:44 -05:00
Andrew Sliwinski
06de644ae6
Remove ./src/environment from Webpack config and bind environment to window. Resolves GH-199.
2015-11-03 10:49:32 -05:00
Andrew Sliwinski
44f3101069
Fix call to jar.get. Resolves GH-120
2015-10-25 18:21:07 -04:00
Matthew Taylor
7b704e878f
Give name to the exported module
2015-10-16 15:10:17 -04:00
Matthew Taylor
d307b21d3d
Add cookie setter to jar
2015-10-16 10:59:55 -04:00
Matthew Taylor
0577860f3a
Rename renderer
to render
...
and make it a method that returns a component, rather than an object with a render method
2015-10-15 23:11:09 -04:00
Matthew Taylor
b8972d545c
refactor cookieMixinFactory
...
isolate cookie business logic from react mixin logic so that they are more modular. And use the cookie business logic to set translation objects on the window
2015-10-15 23:09:35 -04:00
Matthew Taylor
c3b62c8f05
Update core react dependencies
2015-10-14 22:59:38 -04:00
Andrew Sliwinski
f3d6a273fb
Resolve merge conflict
2015-10-13 15:57:55 -04:00
Ray Schamp
07be335a42
Consolidate rendering to helper function
2015-10-13 11:45:23 -06:00
Ray Schamp
2affa1b77e
Name all the exports for easier debugging
2015-10-08 14:25:18 -06:00
Andrew Sliwinski
ed8ff0cad2
More format module to ./src/lib
2015-09-21 10:48:06 -04:00