Skip to content

Changes to language sourcing #8

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

Merged
merged 2 commits into from
Sep 4, 2020
Merged

Changes to language sourcing #8

merged 2 commits into from
Sep 4, 2020

Conversation

Anadroid
Copy link
Contributor

@Anadroid Anadroid commented Sep 4, 2020

No description provided.

@Anadroid
Copy link
Contributor Author

Anadroid commented Sep 4, 2020

This PR:

  1. changes gatsby-node.js so that:

    • reference url contain the language code to be able to source english pages if there is missing translation
    • change path to refPath because there is already a path variable
  2. change to SubcategoryList.js link to show to remove the language code from the file name in the url

  3. changes to examples.js and tutorials.js (same change), example-template.js and tutorial-template.js (same change), and index-ref-template.js so that the english page is shown if there is no translation

  4. adds files to check if localized pages work when there is translated content as well as when there isn't:

    • Client_active().de.json and Client_available().de.json to the net library
    • folder coordinate-system-and-shapes and index.md to the tutorials

@runemadsen
Copy link
Member

This is beautiful! Merging in.

@runemadsen runemadsen merged commit 8676c28 into master Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants