Skip to content
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

Extracting Header and Footer Links from source into content #2270

Merged
merged 3 commits into from
Aug 28, 2019

Conversation

GasimGasimzada
Copy link
Contributor

@GasimGasimzada GasimGasimzada commented Aug 20, 2019

This PR started from conversation with @tesseralis about creating a Gatsby theme and using that theme in localization pages. However, there are some strings in source files that need to be translatable before getting into creating the Gatsby theme. So, in this PR is about extracting header and footer links.

Things To Do

  • Move Footer links into content/footerNav.yml
  • Move Header links into content/headerNav.yml

So far, in this PR, I have extracted footer and header links into their respective YAML files and loaded them into appropriate components. However, there are some caveats (for example, I think it would make more sense if the Github link in Header and Footer are loaded from the same place.)

@reactjs-bot
Copy link

reactjs-bot commented Aug 20, 2019

Deploy preview for reactjs ready!

Built with commit 8c4800c

https://deploy-preview-2270--reactjs.netlify.com

Copy link
Member

@tesseralis tesseralis left a comment

Choose a reason for hiding this comment

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

Just one nit about placement and naming.

@GasimGasimzada do you want to just have this PR be for the header/footer links and do the rest in another one so we can keep things simple?

@GasimGasimzada GasimGasimzada changed the title Extracting strings from source files for easier translations Extracting Header and Footer Links from source into content Aug 21, 2019
- Remove them from section list
- Add keys to nav array items when mapping
@GasimGasimzada
Copy link
Contributor Author

@GasimGasimzada do you want to just have this PR be for the header/footer links and do the rest in another one so we can keep things simple?

Okay, let’s keep things simple. I will rename this PR to reflect that it is only about Footer and Header links.

@tesseralis
Copy link
Member

@GasimGasimzada I think you still need the $FlowFixMes for now since the other PR hasn't gone in yet (or would you like to take a look at it?)

@GasimGasimzada
Copy link
Contributor Author

GasimGasimzada commented Aug 21, 2019

@tesseralis sorry. I thought it was fixed when you referenced the PR. I added them back for YAML files. Regarding looking at Flow typings, let's do one thing at a time because I have an idea on how to go further regarding extracting strings. However, I need to spend some time investigating the problem before I can come up with a solution.

@GasimGasimzada
Copy link
Contributor Author

GasimGasimzada commented Aug 27, 2019

@tesseralis hello, if everything is okay here, could you please merge this; so that, I can move to extracting translatable strings?

@tesseralis tesseralis merged commit da869ab into reactjs:master Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants