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

feat(gatsby-source-drupal): drupal langcode as notlangcode #37445

Merged
merged 13 commits into from
Jan 11, 2023

Conversation

TylerBarnes
Copy link
Contributor

The langcode in Drupal is renameable and this PR adds an option to configure using a renamed langcode in source-drupal.

While I was in there changing things I converted the project to TS - but that was mostly just renaming files and adding babel ts

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jan 11, 2023
smthomas
smthomas previously approved these changes Jan 11, 2023
}

type Options = {
// TODO: type all options
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to keep this comment in here as a reminder?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to make sure it's obvious the full options aren't typed yet. I can follow up in another PR with types for this

@TylerBarnes TylerBarnes added topic: source-drupal Related to Gatsby's integration with Drupal and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jan 11, 2023
@TylerBarnes TylerBarnes added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Jan 11, 2023
@TylerBarnes TylerBarnes merged commit 3e8bb5a into master Jan 11, 2023
@TylerBarnes TylerBarnes deleted the feat/drupal-langcode-as-notlangcode branch January 11, 2023 23:05
tyhopp pushed a commit that referenced this pull request Jan 13, 2023
* add ts support

* make all files ts

* add new enabled languages plugin option object types/docs

* add local test scripts

* add normalization code for langCode as def

* use proper joi method name

* change property name

* refactor for TS

* ts changes

* ts fixes

* use renamed code in node id

* attempt to disable easlint rules for source-drupal

(cherry picked from commit 3e8bb5a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes topic: source-drupal Related to Gatsby's integration with Drupal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants