Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Sd followup reactintl #165

Merged
merged 35 commits into from
Mar 16, 2018
Merged

Sd followup reactintl #165

merged 35 commits into from
Mar 16, 2018

Conversation

ifsimicoded
Copy link
Contributor

@ifsimicoded ifsimicoded commented Mar 8, 2018

Janis static content language translation

  • setup infrastructure for translated static content
  • setup infrastructure for managing translated content (babel + intl.buildlangs.js -- note, we have to manually run this script whenever we want to generate a new default.json file which is the base json file for our translated content. @benweatherman @mateoclarke let me know if you think manually running this sucks and if there's a way to integrate it into our build process)
  • updated stateful components to stateless functions where possible
  • added homepage content which should live in Joplin to react static config

@ifsimicoded ifsimicoded added the wip label Mar 8, 2018
@@ -21,4 +21,5 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

# sass to css
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious if we want to clear out the defaults in the .gitignore that aren't relevent to our use case

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems good

@@ -27,6 +28,7 @@ ENV CMS_API=${CMS_API:-https://joplin.herokuapp.com/api/graphql/}
ARG CMS_MEDIA
ENV CMS_MEDIA=${CMS_MEDIA:-https://joplin.herokuapp.com/media/}

COPY public /app/public
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw this was in Dockerfile but not in Dockerfile.build -- just I added it. Not sure it's necessary at this moment tho.

Copy link
Contributor

@benweatherman benweatherman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐐 🌐

@benweatherman benweatherman temporarily deployed to janis-staging-pr-165 March 13, 2018 22:30 Inactive
@benweatherman benweatherman temporarily deployed to janis-staging-pr-165 March 13, 2018 23:41 Inactive
@benweatherman benweatherman temporarily deployed to janis-staging-pr-165 March 14, 2018 19:22 Inactive
@benweatherman benweatherman temporarily deployed to janis-staging-pr-165 March 15, 2018 15:01 Inactive
@benweatherman benweatherman temporarily deployed to janis-staging-pr-165 March 15, 2018 18:17 Inactive
@benweatherman benweatherman temporarily deployed to janis-staging-pr-165 March 15, 2018 18:21 Inactive
@benweatherman benweatherman temporarily deployed to janis-staging-pr-165 March 15, 2018 18:24 Inactive
@benweatherman benweatherman temporarily deployed to janis-staging-pr-165 March 15, 2018 21:32 Inactive
Copy link
Contributor

@mateoclarke mateoclarke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

surf_wine_friday

@@ -21,4 +21,5 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

# sass to css
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems good

@@ -12,6 +12,7 @@ COPY yarn.lock /app/yarn.lock
COPY package.json /app/package.json
RUN yarn

COPY intl.buildlangs.js /app/intl.buildlangs.js
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll need to add this to the Docker.storybooks too huh.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nah, the build langs is only to generate the base english json -- so it's only needed in a dev environment

To re-generate default.json to update the static content to be translated, the following command can be run:

```
docker exec --interactive --tty janis yarn run build-langs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@ifsimicoded ifsimicoded merged commit 7b1e46d into master Mar 16, 2018
@ifsimicoded ifsimicoded deleted the sd-followup-reactintl branch March 26, 2018 18:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants